ESP32 BLE mesh saving state while relaying the message
Posted: Sun Sep 19, 2021 6:17 am
Hello,
I will first explain what my application does. I have about 4-5 devices forming a BLE mesh network. These devices are connected with a RFID reader and all the devices scan a specific set of tags. Since this is a collective effort when a reader scans a tag other devices in the mesh network should know as well. Therefore each node should save the state, emit message when a tag is scanned and also relay messages. So what is the best example code to start off with? According to my initial research the client modal and the server modal with relay enabled won't be sufficient, because each node has to save the state when a message is received and also send out a message when an event occurs.
I have seen that apart from client and server modals there is something called control modals with the below given definition,
So is there an example for such a code in the espressif documents?. I could not find such an example. If there is something similar will I be able to achieve the relay functionality as well?
Thanks
Senuda Jayalath
I will first explain what my application does. I have about 4-5 devices forming a BLE mesh network. These devices are connected with a RFID reader and all the devices scan a specific set of tags. Since this is a collective effort when a reader scans a tag other devices in the mesh network should know as well. Therefore each node should save the state, emit message when a tag is scanned and also relay messages. So what is the best example code to start off with? According to my initial research the client modal and the server modal with relay enabled won't be sufficient, because each node has to save the state when a message is received and also send out a message when an event occurs.
I have seen that apart from client and server modals there is something called control modals with the below given definition,
In most applications, Server and Client models need to be used along with some control code that acts based on the received messages or user input. A combination of Server and/or Client model and a control logic results in a Control Model.
So is there an example for such a code in the espressif documents?. I could not find such an example. If there is something similar will I be able to achieve the relay functionality as well?
Thanks
Senuda Jayalath