Bluetooth Relay controller

Hi everyone, I'm trying to create an app for our school project that can switch on and off a Bluetooth relay module but I don't know how to send hexadecimal commands(A00101A2[ON], A00100A1[OFF]) from the app to the bluetooth relay module, hoping someone could help me here thanks in advance :black_heart:

The BlueTooth component has a block that sends a list of decimal unsigned numbers (0-255) representing bytes.

A0 = 160,
01 = 1,
01 = 1,
A2 = 162

so your sendUnsignedBytes block would need the list
160,1,1,162 (made with the Make A List block).

image

1 Like

Thank you so much, i tried this two and both works

The second is clearer to read.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.