pxt-calliope/docs/reference/radio.md
2016-08-08 13:08:15 -07:00

1.0 KiB

Radio

Communicate data using radio packets

radio.sendNumber(0);
radio.sendValue("data", 0);
radio.sendString("");
radio.onDataReceived(() => {
    
});
radio.receiveNumber();
radio.receivedNumberAt(0);
radio.receiveString();
radio.receivedSignalStrength();
radio.setGroup(0);
radio.setTransmitPower(7);
radio.setTransmitSerialNumber(false);
radio.writeValueToSerial();
microbit-radio

See Also

sendNumber, sendValue, sendString, onDataReceived, receiveNumber, receivedNumberAt, receiveString, receivedSignalStrength, setGroup, setTransmitPower, setTransmitSerialNumber, writeValueToSerial