2021-03-01 02:36 PM
I am using STM32WB55RG with SDK version 1.10.0. I want to create BLE mesh, which will contain nodes with sensors. But firstly, I need to create mesh with 2 nodes: first has sensor client model, second has sensor server model. The server should have publish periodically.
I am using BLE_MeshLightingProvisioner example. Device with sensor client is also embedded provisioner. I make these changes in the following files:
For sensor client device:
For sensor server device:
So, publish period for sensor server model should be 1 second. After build and creating mesh via the terminal (atep root, atep prvn-0) it works fine. Server is publishing to client every 1 second. But if I restart device with sensor server model, it stops work. Server does not publish any data.
Publish period is only set in appli_config_client.c during the provisioning. The device remembers self-address, publish and subscribe address and so on. So I thought that the device remembers publish period as well.
How can I configure sensor server (or client if necessary) which will be periodically publish after reset?
Vit