pxt-calliope/docs/reference/radio/set-transmit-serial-number.md
Peli de Halleux bd1536132d fixing references / snippets
cleanup "snippets" compilation state
2016-10-22 21:29:31 -07:00

701 B

Set Transmit Serial Number

Make the radio packet embed the board serial number with each packet of data.

radio.setTransmitSerialNumber(true);

Parameters

  • transmit is a boolean that represents whether the serial number needs to be transmitted.

Simulator

This function only works on the micro:bit, not in browsers.

Example

This program makes the radio send the serial number in each packet.

radio.setTransmitSerialNumber(true);

See also

receive number, send number, on data received

radio