diff --git a/README.md b/README.md index 82e4991..0027972 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/examples/.DS_Store b/examples/.DS_Store index 390846f..4eb2eaf 100644 Binary files a/examples/.DS_Store and b/examples/.DS_Store differ diff --git a/examples/dlln3x_test/dlln3x_test.ino b/examples/dlln3x_test/dlln3x_test.ino index ce9713d..6c9fd3a 100644 --- a/examples/dlln3x_test/dlln3x_test.ino +++ b/examples/dlln3x_test/dlln3x_test.ino @@ -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); } diff --git a/library.properties b/library.properties index 68f1303..26e157c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name= DLLN3X ZigBee Mesh Module Library -version= 1.0.2 +version= 1.0.3 author= Duke Liu maintainer= Duke Liu sentence= This library allows you to use DLLN3X ZigBee mesh module very easily.