Topic

FAQ
Login Register
How can I get an event on "telink mesh switch"?
Sep 27, 2022 08:22

/

A

/A

hello.


I have a lot of questions. Please excuse me.

I have to demonstrate the product to the client company, but I don't have much time.



As shown in the figure, several lights are configured with "telink mesh light", which controls on/off with "telink light switch".


The states of each light are responded with a "light switch"
I want to show it to the monitor through UART.


However, the function "void rf_link_data_callback (u8 *p)" in "light switch" does not become an event.


Question.
How can I get an event?
I must receive the value of "LGT_CMD_LIGHT_STATUS" through the event and show it to the monitor using UART.


ps. It's being handled well in the smartphone app.

      However, in my case, I have to show it to the monitor through UART on the switch.


TL_Soyo Sep 27, 2022 10:50
0
/A


Hi,

 rf_link_data_callback is used by light,you may need "get light status" cmd,please reference AN_BLE-2015060300-E10_Telink BLE Mesh Development Kit And SDK Manual.pdf section 6.9/6.10 in telink_mesh_doc.zip

2 replies
TL_Soyo Sep 27, 2022 10:50
0
/A


Hi,

 rf_link_data_callback is used by light,you may need "get light status" cmd,please reference AN_BLE-2015060300-E10_Telink BLE Mesh Development Kit And SDK Manual.pdf section 6.9/6.10 in telink_mesh_doc.zip