V1.0.3 Update

This commit is contained in:
Mentalflow 2023-01-12 15:29:15 +08:00
parent ba832b0a10
commit 3b39af65d3
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
4 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,10 @@
This library allows you to use DLLN3X ZigBee mesh module very easily. This library allows you to use DLLN3X ZigBee mesh module very easily.
# Change Log # Change Log
**V1.0.3 2023.1.12**
- Bug fixed for example.
**V1.0.2 2022.12.8** **V1.0.2 2022.12.8**
- Bug fixed. - Bug fixed.

BIN
examples/.DS_Store vendored

Binary file not shown.

View File

@ -5,11 +5,11 @@ zigbee_frame zframe;
void zigbee_call_back(uint8_t orig_port, void zigbee_call_back(uint8_t orig_port,
uint8_t dest_port, uint16_t addr, uint8_t dest_port, uint16_t addr,
uint8_t data[], int length) { uint8_t data[], int length) {
switch (orig_port) { switch (dest_port) {
case 0x82: case 0x82:
{ {
/* Do everything you want to do */ /* Do everything you want to do */
Serial.println("Hello from port 0x82!"); printf("Hello from port 0x%X!",orig_port);
break; break;
default: default:
@ -25,7 +25,7 @@ void setup() {
zframe.src_port = 0x81; zframe.src_port = 0x81;
zframe.des_port = 0x82; zframe.des_port = 0x82;
*((uint16_t *)&zframe.remote_addrL) = dlln33.read_addr(); *((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; zframe.length = 21;
dlln33.send(&zframe); dlln33.send(&zframe);
} }

View File

@ -1,5 +1,5 @@
name= DLLN3X ZigBee Mesh Module Library name= DLLN3X ZigBee Mesh Module Library
version= 1.0.2 version= 1.0.3
author= Duke Liu <mentalflow@ourdocs.cn> author= Duke Liu <mentalflow@ourdocs.cn>
maintainer= Duke Liu <mentalflow@ourdocs.cn> maintainer= Duke Liu <mentalflow@ourdocs.cn>
sentence= This library allows you to use DLLN3X ZigBee mesh module very easily. sentence= This library allows you to use DLLN3X ZigBee mesh module very easily.