A radio that can both transmit and receive is called a transceiver.
Sends a string to other Calliope minis in the area connected by radio. The maximum string length is 19 characters.
radio.sendString("Hello!")
msg
is a string to send by radio.If you load this program onto two or more Calliope minis, you can send a
code word from one of them to the others by pressing button A
. The
other Calliope minis will receive the code word and then show it.
input.onButtonPressed(Button.A, () => {
radio.sendString("Codeword: TRIMARAN")
basic.showString("SENT");
})
radio.onDataPacketReceived(({ receivedString }) => {
basic.showString(receivedString);
});
radio