Category:BLE
Description
"BLE" means "Bluetooth Low Energy". You can find more info about this technology on Wikipedia
With the release 3.11 of the Nspire iPad app, TI introduced the ability to communicate with any BLE-compatible device, which can be of different sorts: some sensors, some microcontrollers-equipped boards (little robots. etc !)... or anything that features a BLE chip.
In early April 2015, TI updated its Lua API documentation, which now includes a chapter about the BLE APIs.
A sample script by Fred Fotsch is available here: http://education.ti.com/en/tisciencenspired/us/detail?id=98CD6AF24B5643EDA3BD8C261DEEB9FB&t=A8635C77876A41AE90122589985F5703
Several tutorials related to BLE have been created by Steve Arnold and are available on his website: http://compasstech.com.au/TNS_Authoring/Scripting/script_tut30.html
The API
BLE features are available with the "ble"/"bleCentral" modules (code : require "ble" and require "bleCentral" at the top of the script, while in apilevel 2.5).
Tables ble and bleCentral are then available.
ble
- ble.OFF
- ble.ON
- ble.RESETTING
- ble.UNSUPPORTED
- ble.addStateListener
- ble.pack
- ble.removeStateListener
- ble.unpack
bleCentral
- bleCentral.isScanning
- bleCentral.startScanning
- bleCentral.stopScanning
Other additions include:
PeripheralClass
- getName
- getState
- connect
- disconnect
- discoverServices
- getServices
ServiceClass
- getUUID
- discoverCharacteristics
- getCharacteristics
CharacteristicClass
- getUUID
- setValueUpdateListener
- setWriteCompleteListener
- read
- setNotify
- getValue
- write
This category currently contains no pages or media.