BlocosIA Wiki Editor

Classic Bluetooth

Chat by text with HC-05, HC-06, ESP32 (BluetoothSerial) and other serial Bluetooth devices (SPP).

Pair the device in the system (Settings > Bluetooth; HC-05/HC-06 PIN: 1234 or 0000). In Chrome/Edge on a computer, click "Connect" and choose the Bluetooth port. Each message is a line of text. HC-05/HC-06 use 9600 by default.

To use it: in the editor, click "Extensions" (bottom corner) and add "Classic Bluetooth".

Stack

connection speed: [9600]

Does an action. Snap it below another block.

Stack

send over Classic Bluetooth ( )

Does an action. Snap it below another block.

Stack

send ( ) without new line

Does an action. Snap it below another block.

Stack

send byte ( )

Does an action. Snap it below another block.

Hat

when a message arrives over Classic Bluetooth

Starts a script when this happens.

Hat

when [ligar] arrives over Classic Bluetooth

Starts a script when this happens.

Reporter

received message (Classic Bluetooth)

Gives a number or text. Put it inside a round slot.

Reporter

received number (Classic Bluetooth)

Gives a number or text. Put it inside a round slot.

Boolean

Classic Bluetooth connected?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

disconnect Classic Bluetooth

Does an action. Snap it below another block.