This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
configuration:bluetooth-low-energy-ble [2020/06/04 10:32] – [Step 2 Run Script] dodenhoeft | configuration:bluetooth-low-energy-ble [2020/06/04 11:45] – [Step 2 Run Script] dodenhoeft | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Bluetooth Low Energy ====== | ====== Bluetooth Low Energy ====== | ||
+ | Bluetooth is a standardized protocol for sending and receiving data via a 2.4GHz wireless link. It's a secure protocol, and it's perfect for short-range, | ||
- | Since Software version 4.4.0.100 all netmodule device supports Bluetooth Low Energy via SDK. The following step by step description will guide you to configure a BLE Scanner on a NB800. | + | {{: |
- | ===== Step 1 Change | + | Since Software version 4.4.0.100 all netmodule device support |
- | Since the latest version 4.4.0.100 all netmodule device provide a Bluetooth Interface on the WEB - GUI. For using Bluetooth | + | ===== Step 1. Change |
+ | For using bluetooth via SDK you need to enable the interface for the SDK environment via the WEB GUI: | ||
- | ===== Step 2 Run Script ===== | + | {{: |
+ | ===== Step 2. Run Script ===== | ||
- | Afterwards you can run the following BLE Script, which is scanning available BLE Tags in the surroundings. | + | Afterwards you can run the following BLE Script. The script |
- | + | <code - BLE_Scan.are> | |
- | <code - BLEscan.are> | + | |
nb_bt_mode(BT1, | nb_bt_mode(BT1, | ||
for (i = 0; i < 20; i++) { | for (i = 0; i < 20; i++) { | ||
+ | | ||
devices = nb_bt_dev_list(BT1); | devices = nb_bt_dev_list(BT1); | ||
printf(" | printf(" | ||
for (d = 0; d < length(devices); | for (d = 0; d < length(devices); | ||
dev_info = nb_bt_dev_info(BT1, | dev_info = nb_bt_dev_info(BT1, | ||
- | dump(dev_info); | ||
| | ||
} | } | ||
Line 27: | Line 29: | ||
nb_bt_mode(BT1, | nb_bt_mode(BT1, | ||
</ | </ | ||
+ | |||
+ | For more BLE SDK functionality, | ||
+ |