Difference between revisions of "Changes in OS 3.11"

From Inspired-Lua Wiki
Jump to navigation Jump to search
(Updated from doc)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Changes==
+
<h2>Changes</h2>
The [[platform.apilevel|apilevel]] is now 2.5.
+
<p>The [[platform.apilevel|apilevel]] is now 2.5.
 
+
</p>
==New==
+
<h2>New</h2>
[[:Category:BLE|BLE]] features are now available with the "ble"/"bleCentral" modules (code : ''' ''require "ble"''''' and '''''require "bleCentral"'' ''' at the top of the script, while in [[platform.apilevel|apilevel]] 2.5).<br />
+
<p>[[:Category:BLE|BLE]] features are now available with the "ble"/"bleCentral" modules (code&nbsp;: <b> <i>require "ble"</i></b> and <b><i>require "bleCentral"</i> </b> at the top of the script, while in [[platform.apilevel|apilevel]] 2.5).<br />
Tables '''ble''' and '''bleCentral''' are then available.
+
Tables <b>ble</b> and <b>bleCentral</b> are then available.
 
+
</p><p><b>ble</b>
'''ble'''
+
</p>
 
: ble.OFF
 
: ble.OFF
 
: ble.ON
 
: ble.ON
Line 15: Line 15:
 
: ble.removeStateListener
 
: ble.removeStateListener
 
: ble.unpack
 
: ble.unpack
'''bleCentral'''
+
 
 +
<p><b>bleCentral</b></p>
 
: bleCentral.isScanning
 
: bleCentral.isScanning
 
: bleCentral.startScanning
 
: bleCentral.startScanning
 
: bleCentral.stopScanning
 
: bleCentral.stopScanning
  
Other additions include:
+
<p>''Other additions include:''</p>
 +
 
 +
'''PeripheralClass'''
 +
: getName
 +
: getState
 +
: connect
 +
: disconnect
 +
: discoverServices
 +
: getServices
 +
 
 +
'''ServiceClass'''
 +
: getUUID
 +
: discoverCharacteristics
 +
: getCharacteristics
 +
 
 +
'''CharacteristicClass'''
 +
: getUUID
 +
: setValueUpdateListener
 +
: setWriteCompleteListener
 +
: read
 +
: setNotify
 +
: getValue
 +
: write

Latest revision as of 05:12, 8 April 2015

Changes

The apilevel is now 2.5.

New

BLE features are now 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