Hey everyone,
First of all, thanks for your time. I am a complete newbie to Bluetooth Mesh and I have a small question regarding two of the samples of Bluetooth Mesh viz.,. Light and Light switch samples.
I have a Board which should read the status of the Switch and send it to the Mobile Application whether it is on or off, The same board should be able to control the relay based on the input from the Mobile Application.
As per the webinars I have gone through, I have got some clarity that,
1. Read the status of the Switch and send it to the Mobile Application is similar to Light Switch Sample, where Board is Client and Mobile is Server.
2. Able to control the relay based on the input from the Mobile Application is similar to Light Sample, where Board is Server and Mobile is Client.
Now I want these two particular models to be in one single project. How to handle this?
Please correct me if I am wrong, but this is what I comprehended from the documentation on Bluetooth Mesh,
Method 1: I should add a handler, to Generic OnOff Server such as Light sample, to publish the status of the switch periodically so that mobile application will know the current status. Here, Board will be Server and Mobile application will be client.
or
Method 2: I should add handler, to Generic OnOff Client Such as Light Switch sample, to handle the Get and Set Messages. Here, Baord will be client and Mobile application will be server.
Is this the way? Is there any other example or sample that I need to refer? And what will be efficient way to solve my project?
Thank you in advance,
Kalyan.