I have a broadcaster application that does nothing except send out advertising data roughly every second. Due to some weirdness on iOS, I'd like to experiment with changing our device address periodically (perhaps even as often as every advertising packet).
It seems that this function call would do the trick:
GAP_ConfigDeviceAddr(ADDRTYPE_PRIVATE_NONRESOLVE, NULL);
However, when I call this, I get error bleIncorrectMode ("Not setup properly to perform that task") - which tells me I'm doing it at the wrong time.
When is the appropriate time to call this? Is there an event sent to peripheralStateNotificationCB() when an advertising packet is sent (or going to be sent)?
(Along those lines, where are the events - such as "GAPROLE_STARTED" - documented? I could not find them in the "Documents" folder of the BLE stack.
Thanks.
#define | bleIncorrectMode 0x12 |
Not setup properly to perform that task. |