NordicSemiconductor / ble-sdk-arduino

MIT License
249 stars 97 forks source link

Update ble_A_Hello_World_Program.ino #11

Closed remkokruize closed 9 years ago

remkokruize commented 9 years ago

The advertising interval should be set using hexadecimal values instead of decimal.

Skjerve commented 9 years ago

Thanks, we will look into changing this in the next release.

kasimok commented 9 years ago

e,想 想,

发送自我的HTC 802t

----- Reply message ----- 发件人: "remkooo" notifications@github.com 收件人: "NordicSemiconductor/ble-sdk-arduino" ble-sdk-arduino@noreply.github.com 主题: [ble-sdk-arduino] Update ble_A_Hello_World_Program.ino (#11) 日期: ,xx , 周一, 9月 15 日, 2014 年 20:00

, The advertising interval should be set using hexadecimal values instead of decimal. You can merge this Pull Request by running:

git pull https://github.com/remkooo/ble-sdk-arduino patch-2

Or you can view, comment on it, or merge it online at:

https://github.com/NordicSemiconductor/ble-sdk-arduino/pull/11

-- Commit Summary --

-- File Changes --

M libraries/BLE/examples/ble_A_Hello_World_Program/ble_A_Hello_World_Program.ino (8)

-- Patch Links --

https://github.com/NordicSemiconductor/ble-sdk-arduino/pull/11.patch https://github.com/NordicSemiconductor/ble-sdk-arduino/pull/11.diff


Reply to this email directly or view it on GitHub: https://github.com/NordicSemiconductor/ble-sdk-arduino/pull/11

Skjerve commented 9 years ago

Hi, The advinterval is a multiple of 0.625 ms, refer to the datasheet chapter 24.14.3. So 0x0050 is actually 80 (decimal) x 0.625 = 50 ms