1.2 KiB
1.2 KiB
Radio
Send and receive data using radio packets.
radio.sendNumber(0);
radio.sendValue("name", 0);
radio.sendString("");
radio.onReceivedNumber(function (receivedNumber) { });
radio.onReceivedValue(function (name, value) { });
radio.onReceivedString(function (receivedString) { });
radio.receivedPacket(RadioPacketProperty.SignalStrength)
radio.setGroup(0);
Advanced
radio.writeReceivedPacketToSerial();
radio.setTransmitPower(7);
radio.setTransmitSerialNumber(false);
radio.raiseEvent(0, 0);
radio
See Also
send number, send value, send string, on received number, on received value, on received string, received packet, set group, set transmit power, set transmit serial number, write received packet to serial, raise event