This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

thingz.thingz_radio

Thingz Radio

class thingz.thingz_radio.Radio

Send and receive messages between boards

send(data: str) None

Send a message. The message is broadcasted, the board around, if on the same channel, will receive it

Parameters:

data (str) – The data to send

receive() str

Wait for data to be received

Returns:

The data received

Return type:

str

set_chanel(channel: int) None

Change the channel used by the radio module

Parameters:

channel (int) – The channel between 1 and 10

get_channel() int

Get the channel used by the radio module

Returns:

The channel used by the radio module

Return type:

int

get_mac() bytes

Get the mac address used by the radio module

Returns:

The mac address used by the radio module

Return type:

bytes