V1.0.3 Update
This commit is contained in:
parent
ba832b0a10
commit
3b39af65d3
|
@ -2,6 +2,10 @@
|
|||
This library allows you to use DLLN3X ZigBee mesh module very easily.
|
||||
|
||||
# Change Log
|
||||
**V1.0.3 2023.1.12**
|
||||
|
||||
- Bug fixed for example.
|
||||
|
||||
**V1.0.2 2022.12.8**
|
||||
|
||||
- Bug fixed.
|
||||
|
|
Binary file not shown.
|
@ -5,11 +5,11 @@ zigbee_frame zframe;
|
|||
void zigbee_call_back(uint8_t orig_port,
|
||||
uint8_t dest_port, uint16_t addr,
|
||||
uint8_t data[], int length) {
|
||||
switch (orig_port) {
|
||||
switch (dest_port) {
|
||||
case 0x82:
|
||||
{
|
||||
/* Do everything you want to do */
|
||||
Serial.println("Hello from port 0x82!");
|
||||
printf("Hello from port 0x%X!",orig_port);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -25,7 +25,7 @@ void setup() {
|
|||
zframe.src_port = 0x81;
|
||||
zframe.des_port = 0x82;
|
||||
*((uint16_t *)&zframe.remote_addrL) = dlln33.read_addr();
|
||||
strncpy((char*)zframe.data,"Hello to port 0x81!",21);
|
||||
strncpy((char*)zframe.data,"Hello to port 0x82!",21);
|
||||
zframe.length = 21;
|
||||
dlln33.send(&zframe);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name= DLLN3X ZigBee Mesh Module Library
|
||||
version= 1.0.2
|
||||
version= 1.0.3
|
||||
author= Duke Liu <mentalflow@ourdocs.cn>
|
||||
maintainer= Duke Liu <mentalflow@ourdocs.cn>
|
||||
sentence= This library allows you to use DLLN3X ZigBee mesh module very easily.
|
||||
|
|
Loading…
Reference in New Issue