I am using light model on CSRmesh kit, and I can understand switch PIO handle event (from switch model).
There is code seem to operate as sending data to phone via mesh in AppProcessCsrMeshEvent()
I can't understand how AppProcessCsrMesh Event() works. so I can't modify the code.
Is it possible to achieve this? .
to send a message(LightState) to connected phone via mesh whenever I push the switch button?
If possible, which part should I study?
you can use data model to send message in format as you defined. Try API DataBlockSend() when push the button
DataBlockSend() ? Are you sure?
I can't find DataBlockSend() in CSRMesh 1.3 API doc.
There is StreamSendDataBlock() of Stream Model. you said about this?
I use CSRmesh 2.0. do you see any API of data model. data model is easier to use than stream model,
can you send me([email protected]) that CSRmesh 2.0?