I am using Thingy (nrf52832) to advertise Eddystone UID and TLM packets in bursts. On a given event advertising starts with an interval of 200ms, then stops after specified amount of time. This sort of works. The problem is that after stopping, TLM packets are still advertised every ~10 seconds. I want to fully stop the advertising when the burst is complete.
I am using the eddystone library from Thingy SDK v2.1.0, and used the example "ble_app_eddystone" from NRF52 SDK v13.1.0 for guidance.
To stop advertising, I am using the following function from es_adv.h:
As I understand it, this function should stop the eddystone advertising timers and disable advertising in the softdevice.
I noticed that when the intended advertisements are completed the eddystone event callback is called. This does not occur when the uninteded advertisements are sent, which leads me to believe that advertising in the softdevice has not been disabled.
I have tried playing around with the parameters in es_app_config.h to see if I can stop or change the frequency of the unintended advertising, without any success.
Any ideas?