u-blox / c209-aoa-tag

Bluetooth Direction Finding Tag sample application. Works with u-connectLocate.
https://www.u-blox.com/en/technologies/bluetooth-indoor-positioning
Apache License 2.0
33 stars 12 forks source link

timing and control BT advertising #8

Closed sdetweil closed 2 years ago

sdetweil commented 2 years ago

I want to set the eddystone info from an AT command over serial port. (see #7)

adding an AT command for the info is easy (and for start/stop advertising as discussed before)

Are there any issues/dependencies doing bt_enable later than the current design? and from the AT commandHandler

some platforms get the co-processor running and you have to do other calls to change the bt setup before changing/setting the advertising packet info

jakkra commented 2 years ago

Hi, I think you can find that info here or somewhere else in the nRF Connect documentation.

I don't see any problem calling bt_enable later. Only problem I can think of is that for example buttons are clicked, then there may be a crash, since BT is not started yet and buttons change adv. interval, but that can be fixed by moving buttonsInit to the btReadyCb callback.

sdetweil commented 2 years ago

great! thanks