Difference between revisions of "Changes in OS 3.11"

From Inspired-Lua Wiki
Jump to navigation Jump to search
(Other additions related to BLE)
Line 1: Line 1:
 
<h2>Changes</h2>
 
<h2>Changes</h2>
<p>The <a href="platform.apilevel">apilevel</a> is now 2.5.
+
<p>The [[platform.apilevel|apilevel]] is now 2.5.
 
</p>
 
</p>
 
<h2>New</h2>
 
<h2>New</h2>
<p><a href=":Category:BLE">BLE</a> 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 <a href="platform.apilevel">apilevel</a> 2.5).<br />
+
<p>[[:Category: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.
 
Tables <b>ble</b> and <b>bleCentral</b> are then available.
 
</p><p><b>ble</b>
 
</p><p><b>ble</b>
 
</p>
 
</p>
<dl><dd> ble.OFF
+
<p><dl><dd> ble.OFF
 
</dd><dd> ble.ON
 
</dd><dd> ble.ON
 
</dd><dd> ble.RESETTING
 
</dd><dd> ble.RESETTING
Line 16: Line 16:
 
</dd><dd> ble.unpack
 
</dd><dd> ble.unpack
 
</dd></dl>
 
</dd></dl>
 +
</p>
 
<p><b>bleCentral</b>
 
<p><b>bleCentral</b>
 
</p>
 
</p>
<dl><dd> bleCentral.isScanning
+
<p><dl><dd> bleCentral.isScanning
 
</dd><dd> bleCentral.startScanning
 
</dd><dd> bleCentral.startScanning
 
</dd><dd> bleCentral.stopScanning
 
</dd><dd> bleCentral.stopScanning
 +
&lt;/dd&gt;</dl>
 +
</p>
 +
<p>Other additions include:
 +
</p>
 +
<p><b>PeripheralClass</b>
 +
</p>
 +
<dl><dd> getName
 +
</dd><dd> getState
 +
</dd><dd> connect
 +
</dd><dd> disconnect
 +
</dd><dd> discoverServices
 +
</dd><dd> getServices
 
</dd></dl>
 
</dd></dl>
<p>Other additions include:
+
<p><b>ServiceClass</b>
 +
</p>
 +
<dl><dd> getUUID
 +
</dd><dd> discoverCharacteristics
 +
</dd><dd> getCharacteristics
 +
</dd></dl>
 +
<p><b>CharacteristicClass</b>
 
</p>
 
</p>
 
+
<dl><dd> getUUID
'''PeripheralClass'''
+
</dd><dd> setValueUpdateListener
: getName
+
</dd><dd> setWriteCompleteListener
: getState
+
</dd><dd> read
: connect
+
</dd><dd> setNotify
: disconnect
+
</dd><dd> getValue
: discoverServices
+
</dd><dd> write
: getServices
+
</dd></dl>
 
 
'''ServiceClass'''
 
: getUUID
 
: discoverCharacteristics
 
: getCharacteristics
 
 
 
'''CharacteristicClass'''
 
: getUUID
 
: setValueUpdateListener
 
: setWriteCompleteListener
 
: read
 
: setNotify
 
: getValue
 
: write
 

Revision as of 05:01, 8 April 2015

Changes

The apilevel is now 2.5.

New

Category: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 </dd>

Other additions include:

PeripheralClass

getName
getState
connect
disconnect
discoverServices
getServices

ServiceClass

getUUID
discoverCharacteristics
getCharacteristics

CharacteristicClass

getUUID
setValueUpdateListener
setWriteCompleteListener
read
setNotify
getValue
write