Bluetooth Low Energy

Description

Bluetooth Low Energy, or BLE, is used to wirelessly connect two devices to one another. The BLE component allows you to find and connect to BLE devices and to communicate directly with them.

BLE functionality can't be tested with the Thunkable Live app on iOS. To test the BLE functionality in your app on iOS, please download your app.

Blocks

Scan

This function is used to scan for nearby BLE or Bluetooth enabled devices. Scanning happens for 10 seconds. Once scanning has successfully completed then a list of the available device ids and a list of available names will be returned. If the scanning function can not be completed then an error will be returned.

Connect to Device Id

The Connect to Device Id function allows your app to connect to a BLE enabled device based in the Id of that device.

Connect to Device Name

When you know the name of the BLE device that you want to connect to you can use the Connect to Device Name block to connect directly to it. Please note that device names are not unique and it is relatively easy to change the name of a BLE device.

Receive

If you have a BLE device that is capable of sending data to another device then you will need to use the Receive function in your app in order to listen to, or receive, data coming from the BLE device.

You need to be connected to another Bluetooth device in order to use this block.

You can receive a String or a Byte Array.

Transmit

Should you need to send data to a BLE device then you can use the Transmit function to send that information.

You need to be connected to another Bluetooth device in order to use this block.

You can transmit a String or a Byte Array.

Last updated