BluetoothLE extension 20200828 released

Hello everyone,

We have officially published BluetoothLE extension version 20200828. The API is 100% compatible with the 20200616 version that I previously made available, so any upgrade of the extension from that version should be smooth. In addition to the blocks, there is now a BLEExtension class that extension authors can use to make BLE-compatible extensions that should be forward compatible with future BLE versions.

Here is the change list:

  • Update extension permissions to be compatible with Android Q
  • Add new methods:
    • CanReadCharacteristic - Test whether the given ( serviceUuid , characteristicUuid ) is readable
    • CanRegisterForCharacteristic - Test whether the given ( serviceUuid , characteristicUuid ) can be used to register for notifications
    • CanWriteCharacteristic - Test whether the given ( serviceUuid , characteristicUuid ) is writable
    • CanWriteCharacteristicWithResponse - Test whether the given ( serviceUuid , characteristicUuid ) is writable with a response
  • Provide new BLEExtension class for extension developers to use

Regards,
Evan W. Patton, Ph.D.
Lead Software Engineer, MIT App Inventor

4 Likes

(added to FAQ)

(also added to)

The Doc link or contents do not reflect the new content
http://iot.appinventor.mit.edu/#/bluetoothle/bluetoothleintro

Could you be more specific about what isn't reflected? When I load the page I get:

and searching for the new method names brings you to the corresponding blocks.

I see this, even after doing a F5 refresh in my browser:

What if you try Shift+F5 or Ctrl+F5? I think it's just a caching issue but it's not clear how long your browser is caching it for (the server doesn't return caching headers for app.js file that drives the site).

Shift+F5 did it.

I'll have to remember that.
Thanks!