Changes in OS 3.11

From Inspired-Lua Wiki
Revision as of 04:58, 8 April 2015 by Adriweb (talk | contribs) (Other additions related to BLE)
Jump to navigation Jump to search

Changes

The <a href="platform.apilevel">apilevel</a> is now 2.5.

New

<a href=":Category:BLE">BLE</a> features are now available with the "ble"/"bleCentral" modules (code : require "ble" and require "bleCentral" at the top of the script, while in <a href="platform.apilevel">apilevel</a> 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