pxt-calliope/docs/reference/radio/set-transmit-serial-number.md
Galen Nickel 5d6f3cd598 Remote data topic for the analyze docs (#720)
* Remote data topic for the analyze docs

* Add 'see also'

* Spelling typo

* Add more info about serial number usage

* Expand the example
2018-03-27 18:26:35 -07:00

30 lines
745 B
Markdown

# Set Transmit Serial Number
Make the ``radio`` packet embed the board serial number with each packet of data.
```sig
radio.setTransmitSerialNumber(true);
```
## Parameters
* ``transmit`` is 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`.
## Example
This program makes the ``radio`` send the serial number in each packet.
```blocks
radio.setTransmitSerialNumber(true);
```
## See also
[on data packet received](/reference/radio/on-data-packet-received),
[send number](/reference/radio/send-number),
[send value](/reference/radio/send-value),
[send string](/reference/radio/send-string)
```package
radio
```