pxt-calliope/docs/reference/radio/set-transmit-serial-number.md

30 lines
732 B
Markdown
Raw Normal View History

# set Transmit Serial Number
2016-08-10 22:10:40 +02:00
Make the radio packet embed the board serial number with each packet of data.
2016-08-10 22:10:40 +02:00
```sig
radio.setTransmitSerialNumber(true);
```
## Parameters
2016-08-10 22:10:40 +02:00
* **transmit**: a [boolean](/types/boolean) that, when ``true``, means that the board serial number is included in each transmitted packet. If ``false``, the serial number value is set to `0`.
2016-08-10 22:10:40 +02:00
## Example
2016-08-10 22:10:40 +02:00
This program makes the ``radio`` send the serial number in each packet.
```blocks
radio.setTransmitSerialNumber(true);
```
## See also
2016-08-10 22:10:40 +02:00
[received packet property](/reference/radio/received-packet),
[send number](/reference/radio/send-number),
[send value](/reference/radio/send-value),
[send string](/reference/radio/send-string)
2016-08-10 22:10:40 +02:00
```package
radio
2016-08-10 22:10:40 +02:00
```