how is refreshAdvertisingData supposed to work?
#1099
-
|
How is The function uses the internal I esspecially can not see the use advertised in the documentation "For instance allows refreshing manufacturer data dynamically." I tried to update the manufacturerdata with "NimBLEAdvertising::setManufacturerData" but I always get a "Data length exceeded" error (my data is 12 Byte), because it seems that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You will need to reset the advert data first to change the manufacturer data, this is a limitation due to advertising data structure as the new data length may not be the same as the old data causing errors. |
Beta Was this translation helpful? Give feedback.
You will need to reset the advert data first to change the manufacturer data, this is a limitation due to advertising data structure as the new data length may not be the same as the old data causing errors.
refreshAdvertisingDatajust exists to tell the stack that the data has been changed, once all the changes are done, without having to stop and restart advertising.