2016-04-05 23:10:53 +02:00
|
|
|
# Radio
|
|
|
|
|
2016-05-05 21:32:40 +02:00
|
|
|
Communicate data using radio packets
|
2016-04-05 23:10:53 +02:00
|
|
|
|
|
|
|
```cards
|
|
|
|
radio.sendNumber(0);
|
2016-05-17 07:18:58 +02:00
|
|
|
radio.sendValue("data", 0);
|
|
|
|
radio.sendString("");
|
2016-04-05 23:10:53 +02:00
|
|
|
radio.onDataReceived(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
radio.receiveNumber();
|
|
|
|
radio.receivedNumberAt(0);
|
2016-05-17 07:18:58 +02:00
|
|
|
radio.receiveString();
|
2016-04-05 23:10:53 +02:00
|
|
|
radio.receivedSignalStrength();
|
|
|
|
radio.setGroup(0);
|
|
|
|
radio.setTransmitPower(0);
|
2016-05-17 07:18:58 +02:00
|
|
|
radio.writeValueToSerial();
|
|
|
|
radio.setTransmitSerialNumber(◊);
|
2016-04-05 23:10:53 +02:00
|
|
|
```
|