Hi Support Team!
Please see JN-AN-1218-Zigbee-3-0-Light-Bulb!
As i understand. The led will be init in DriverBulb_vInit () and DriverBulb_DR1175.c include funtion to change status of led.
I have concern!
When i send request from "Coordiator" or "Control node - DimmerSwitch" to "Slave node" change status of led
=> How is the led is changed status? Please guide me!
Log of "Slave node"
Thanks a lot!
Dear Mario
By the way. I have added new log for debug
Can you let me know What function handler this effect?
Many thanks!
Hi Tran,
You will find that the example is calling a few times.
Example in the vAppMain(), vSetBulbState( 0,0), in the App_DimmableLight.c in the function vIdEffectTick.
Regards,
Mario
Hi Tran,
Could you please look at the nex c file "C:\NXP\bstudio_nxp\sdk\JN-SW-4170\Platform\DK4\Source\LightingBoard.c"?
Regards,
Mario
Hi Mario
Thank for response
Actually, I wanna know flowchar from request is sent to the status of led change.
as I see the function APP_ZCL_cbEndpointCallback() is called => I don't know why led is changed>
Please make clear for me! Thanks
Hi Tran,
Please look at the callback, the switch case, file App_DimmableLight.c
GENERAL_CLUSTER_ID_ONOFF
If you are sending an On-Off command, in this case, a variable will set to TRUE.
bUpdateBulb = TRUE;
After that, the flow will call the set bulb state.
PUBLIC void vSetBulbState(bool bOn, uint8 u8Level)
{
if (bOn)
{
vLI_Start(u8Level, 0,0,0,0);
}
else
{
vLI_Stop();
}
vBULB_SetOnOff(bOn);
}
Regards,
Mario
Oh! I understand. :smileygrin: :smileygrin: :smileylaugh:
Thanks you so much!