Z-Stack Home 1.2.0, I'm trying samplelight with HOLD_AUTO_START enable. With no changes, run it on CC2530EM+SmartRF05 v1.8.1. The LED1 keeps blinking.
If I disable: xHOLD_AUTO_START, the samplelight working but auto connect to sampleswitch when it start.
I need it to be manually press button to enable the joining between samplelight and sampleswitch.
Then I made changes on ZDO:ZDApp.c and disable all LED4 such as //HalLedBlink ( HAL_LED_4, 0, 50, 500 );
with HOLD_AUTO_START enable in compile option, LED1 is not blink when start. But when start to join between samplelight and sampleswitch, the LED began to blink again. Status on LCD (LIGHT ON/OFF) is correctly appear. How to make the LED1 on/off accordingly when LIGHT ON/OFF? It keep blinking if HOLD_AUTO_START enable.
This is the compile option.
FEATURE_GREEN_POWER
SECURE=1
TC_LINKKEY_JOIN
NV_INIT
NV_RESTORE
xPOWER_SAVING
xNWK_AUTO_POLL
HOLD_AUTO_START
ZTOOL_P1
MT_TASK
MT_APP_FUNC
MT_SYS_FUNC
MT_ZDO_FUNC
LCD_SUPPORTED=DEBUG
ZCL_READ
ZCL_WRITE
ZCL_REPORT
ZCL_EZMODE
ZCL_BASIC
ZCL_IDENTIFY
ZCL_ON_OFF
ZCL_SCENES
ZCL_GROUPS
xZCL_LEVEL_CTRL