cancel
Showing results for 
Search instead for 
Did you mean: 

Sensor server model does not periodically publish after reset

fiiita
Associate

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:

  • mesh_cfg_usr.h - #define ENABLE_SENSOR_MODEL_CLIENT (1), #define NUMBER_OF_SENSOR 1
  • sensor_cfg_usr.h - #define TOTAL_SENSORS_COUNT 1
  • appli_config_client.c -  #define DEFAULT_PUBLISH_PERIOD  ((0x01 << 6) | 0x01)

For sensor server device:

  • mesh_cfg_usr.h - #define NUMBER_OF_SENSOR 1, #define ENABLE_SENSOR_PUBLICATION, #define ENABLE_SENSOR_MODEL_SERVER (1)
  • sensor_cfg_usr.h - #define TOTAL_SENSORS_COUNT 1

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

0 REPLIES 0