您好! 個人目前使用的 SDK 版本為 V5_40_00_40。
已參考相關文章,透過 使用 GapAdv_prepareLoadByHandle(),和 GapAdv_loadByHandle() ,函数更新數據。
但是, 它似乎只能丟出首次更新的數據, 後續的變動值完全沒呈現出來。
比如說,我需要動態的丟出流水號。但廣播出來的永遠是首次的數據。
請問,是否有方法可以解此問題?
謝謝!!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
嗨! Nick Sun:
我是使用 simple_peripheral 範例修改。 至於修改部份完全參考
/cfs-file/__key/communityserver-discussions-components-files/538/2046.simple_5F00_peripheral.c
我期望的目的是. 廣播內容, 可以借用當中的 1~2 個 bytes 來拋出我想要知道可變動的數據。(比如像是即時的溫度....)
如下圖紅框處, 我已替換成一個變數。但實際廣播出來的值永遠是初值。
請問,我該如何實現成變動即時值呢? 謝謝~
您好,
Scanning and Advertising SLA lab 里的Advertising Task 2 – Change the Advertisement Data 展示了如何在运行时更新广播数据。您能否尝试使用该方法是否能解决您的问题,我们会持续跟进。
感谢您的支持。