pxt-calliope/docs/reference/radio/packet.md

19 lines
1007 B
Markdown
Raw Normal View History

# Packet
A packet that was received by the radio.
## Properties
2017-03-16 15:57:41 +01:00
* `receivedNumber` - The [number](/types/number) that was sent in this packet or `0` if this packet did not contain a number. See [send number](/reference/radio/send-number) and [send value](/reference/radio/send-value)
* `receivedString` - The [string](/types/string) that was sent in this packet or the empty string if this packet did not contain a string. See [send string](/reference/radio/send-string) and [send value](/reference/radio/send-value)
2016-11-02 01:44:37 +01:00
* `time` - The system time of the @boardname@ that sent this packet at the time the packet was sent.
* `serial` - The serial number of the @boardname@ that sent this packet or `0` if the @boardname@ did not include its serial number.
2018-08-01 19:31:32 +02:00
* `signal` - How strong the radio signal is. The exact range of values varies, but it goes approximately from `-128` dB (weak) to `-42` dB (strong).
## See also
[on data packet received](/reference/radio/on-data-packet-received),
```package
radio
```