| Line 1: |
Line 1: |
| − | ==Changes==
| + | <h2>Changes</h2> |
| − | The [[platform.apilevel|apilevel]] is now 2.5. | + | <p>The <a href="platform.apilevel">apilevel</a> is now 2.5. |
| | + | </p> |
| | + | <h2>New</h2> |
| | + | <p><a href=":Category:BLE">BLE</a> features are now available with the "ble"/"bleCentral" modules (code : <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 /> |
| | + | Tables <b>ble</b> and <b>bleCentral</b> are then available. |
| | + | </p><p><b>ble</b> |
| | + | </p> |
| | + | <dl><dd> ble.OFF |
| | + | </dd><dd> ble.ON |
| | + | </dd><dd> ble.RESETTING |
| | + | </dd><dd> ble.UNSUPPORTED |
| | + | </dd><dd> ble.addStateListener |
| | + | </dd><dd> ble.pack |
| | + | </dd><dd> ble.removeStateListener |
| | + | </dd><dd> ble.unpack |
| | + | </dd></dl> |
| | + | <p><b>bleCentral</b> |
| | + | </p> |
| | + | <dl><dd> bleCentral.isScanning |
| | + | </dd><dd> bleCentral.startScanning |
| | + | </dd><dd> bleCentral.stopScanning |
| | + | </dd></dl> |
| | + | <p>Other additions include: |
| | + | </p> |
| | | | |
| − | ==New==
| + | '''PeripheralClass''' |
| − | [[: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 />
| + | : getName |
| − | Tables '''ble''' and '''bleCentral''' are then available.
| + | : getState |
| | + | : connect |
| | + | : disconnect |
| | + | : discoverServices |
| | + | : getServices |
| | | | |
| − | '''ble''' | + | '''ServiceClass''' |
| − | : ble.OFF | + | : getUUID |
| − | : ble.ON | + | : discoverCharacteristics |
| − | : ble.RESETTING | + | : getCharacteristics |
| − | : ble.UNSUPPORTED
| |
| − | : ble.addStateListener
| |
| − | : ble.pack
| |
| − | : ble.removeStateListener
| |
| − | : ble.unpack
| |
| − | '''bleCentral'''
| |
| − | : bleCentral.isScanning
| |
| − | : bleCentral.startScanning
| |
| − | : bleCentral.stopScanning
| |
| | | | |
| − | Other additions include:
| + | '''CharacteristicClass''' |
| | + | : getUUID |
| | + | : setValueUpdateListener |
| | + | : setWriteCompleteListener |
| | + | : read |
| | + | : setNotify |
| | + | : getValue |
| | + | : write |