sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
462 stars 179 forks source link

Update iBeacon broadcast packet after starting #295

Open fkahhaleh opened 2 years ago

fkahhaleh commented 2 years ago

Hi, I would like to update an iBeacon broadcast packet, primarily Major/Minor values based on some condition (for example button pressed or not).

I tried to .end(); and .begin(xyz) the new values, but nothing changed from what I was seeing in the BLE scanner app.

Am I missing something? I do see Pull Request # 198 https://github.com/sandeepmistry/arduino-BLEPeripheral/pull/198

But it is mentioned that .begin() should work in a hacky-workaround way.

Thank you.

F.K.

UPDATE: I pulled the PR noted above, and seems to be functioning correctly! Thank you floe for the PR. really saved me some time.