pxt-calliope/docs/reference/radio.md
2016-10-22 23:04:08 -07:00

1005 B

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();
radio

See Also

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