Skip to content

Commit a53f930

Browse files
committed
320
- Added some debug functions - Fixed getting server time (corrected endpoints and removed -1080 (no more this bug in v.5.3.1)) - Moved all Zigbee code to zigbee.* files
1 parent 8ac0596 commit a53f930

File tree

10 files changed

+1174
-1162
lines changed

10 files changed

+1174
-1162
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
"zboss_api_aps.h": "c",
5959
"esp_zigbee_zcl_command.h": "c",
6060
"esp_zigbee_aps.h": "c",
61-
"zb_zcl_common.h": "c"
61+
"zb_zcl_common.h": "c",
62+
"tools.h": "c",
63+
"freertos.h": "c",
64+
"zigbee.h": "c"
6265
},
6366
"editor.formatOnSave": true,
6467
"idf.port": "/dev/tty.usbmodemflip_Elevlox1",

main/const.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#define OTA_UPGRADE_HW_VERSION 0x0101 /* The parameter indicates the version of hardware */
1616
#define OTA_UPGRADE_MAX_DATA_SIZE 64 /* The parameter indicates the maximum data size of query block image */
1717

18+
#define MAX_CHILDREN 10 /* the max amount of connected devices */
19+
#define INSTALLCODE_POLICY_ENABLE false /* enable the install code policy for security */
20+
#define ESP_ZB_PRIMARY_CHANNEL_MASK ESP_ZB_TRANSCEIVER_ALL_CHANNELS_MASK /* Zigbee primary channel mask use in the example */
21+
1822
#define HW_MANUFACTURER "xyzroe" /* The parameter indicates the manufacturer of the device */
1923
#define HW_MODEL "ZigUSB_C6" /* The parameter indicates the model of the device */
2024

@@ -23,8 +27,8 @@
2327
#define EXT_LED_ENDPOINT 3 /* the endpoint number for the external LED */
2428
#define INV_USB_ENDPOINT 4 /* the endpoint number for the USB switch (inverted logic) */
2529

26-
#define OTA_FW_VERSION 0x0000013D /* The attribute indicates the version of the firmware */
27-
#define FW_BUILD_DATE "20241018" /* The parameter indicates the build date of the firmware */
30+
#define OTA_FW_VERSION 0x00000140 /* The attribute indicates the version of the firmware */
31+
#define FW_BUILD_DATE "20241021" /* The parameter indicates the build date of the firmware */
2832

2933
/* GPIO configuration */
3034
#define BTN_GPIO_1 5 /* Button from v0.3 */
@@ -46,5 +50,6 @@
4650
#define SHORT_PRESS_TIME 150 /* to toggle USB power */
4751
#define UPDATE_ATTRIBUTE_INTERVAL 600000 /* 10 minutes to FORCE update all states */
4852
#define WAIT_BEFORE_FIRST_UPDATE 15000 /* 15 seconds to wait before first update */
53+
#define DEBUG_TASK_INTERVAL 60000 /* Debug task interval */
4954

5055
#endif // CONST_H

0 commit comments

Comments
 (0)