Changes

Jump to navigation Jump to search

Changes in OS 3.11

668 bytes added, 06:12, 8 April 2015
m
no edit summary
Line 1: Line 1: −
==New==
+
<h2>Changes</h2>
[[:Category:BLE|BLE]] features are now available with the "BLE" module (code : ''' require "ble" ''' at the top of the script).<br />
+
<p>The [[platform.apilevel|apilevel]] is now 2.5.
A '''ble''' table is then available, containing :
+
</p>
 +
<h2>New</h2>
 +
<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 <b>ble</b> and <b>bleCentral</b> are then available.
 +
</p><p><b>ble</b>
 +
</p>
 
: ble.OFF
 
: ble.OFF
 
: ble.ON
 
: ble.ON
Line 10: Line 15:  
: ble.removeStateListener
 
: ble.removeStateListener
 
: ble.unpack
 
: ble.unpack
 +
 +
<p><b>bleCentral</b></p>
 +
: bleCentral.isScanning
 +
: bleCentral.startScanning
 +
: bleCentral.stopScanning
 +
 +
<p>''Other additions include:''</p>
 +
 +
'''PeripheralClass'''
 +
: getName
 +
: getState
 +
: connect
 +
: disconnect
 +
: discoverServices
 +
: getServices
 +
 +
'''ServiceClass'''
 +
: getUUID
 +
: discoverCharacteristics
 +
: getCharacteristics
 +
 +
'''CharacteristicClass'''
 +
: getUUID
 +
: setValueUpdateListener
 +
: setWriteCompleteListener
 +
: read
 +
: setNotify
 +
: getValue
 +
: write

Navigation menu