This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Beaconing while running the Mesh stack

I successfully tried the "beaconing" example from your Mesh SDK 310.

I noticed that moving

  line 215 "adv_start();" in main.c

right after "ERROR_CHECK(mesh_stack_start());  (line 219 of main.c)

Causes the project not working with an error like:

<t: 0>, main.c, 190, ----- Bluetooth Mesh Beacon Example -----
<t: 9139>, main.c, 196, Initialization complete!
<t: 14006>, mesh_app_utils.c, 65, Device UUID (raw): 930A787CC75A3640B74BD4E3B9525BE7
<t: 14009>, mesh_app_utils.c, 70, Device UUID : 7C780A93-5AC7-4036-B74B-D4E3B9525BE7
<t: 14019>, main.c, 221, Bluetooth Mesh Beacon example started!
<t: 14023>, app_error_weak.c, 108, Mesh assert at 0x0002A64A (:0)

Why??

My guess is that there are context constrains and may be race condition that got violated.

Where can I find some reference document/material to be able to start, stop and modify the beacon behavior without spoiling the Mesh stack?

My need is to be able to start/stop modify the advertiser and modify the beacon payload while the mesh stack is up running!

Maybe the mesh was started hours before, then my application needs to start two different advertisers with different configs and payloads.... can you share the code snippet/template one is supposed to use?

thanks in advance!

 Davide