pxt-calliope/docs/reference/radio.md

774 B

Radio

Communicate data using radio packets

radio.sendNumber(0);
radio.sendValue("name", 0);
radio.sendString("");
radio.onDataPacketReceived(() => {

});
radio.setGroup(0);
radio.setTransmitPower(7);
radio.setTransmitSerialNumber(false);
radio.writeReceivedPacketToSerial();
radio

See Also

sendNumber, sendValue, sendString, onDataPacketReceived, setGroup, setTransmitPower, setTransmitSerialNumber, writeReceivedPacketToSerial