update radio ref for deprecated pages (#1829)

This commit is contained in:
Galen Nickel
2019-02-13 21:01:50 -08:00
committed by Abhijith Chatra
parent 739b9568b5
commit 7a5de98819
19 changed files with 128 additions and 61 deletions

View File

@ -1,4 +1,4 @@
# Received Packet Property
# received Packet
Get one of the properties from the last received radio packet.
@ -6,6 +6,8 @@ Get one of the properties from the last received radio packet.
radio.receivedPacket(RadioPacketProperty.SignalStrength)
```
In addition to a [number](types/number), [string](/types/string), or name-value pair, the packet received also contains other information about the transmission of the packet. You can get this additional information by selecting a property from the packet.
## Parameters
* **type**: the property type to get from the packet. These are:
@ -15,7 +17,10 @@ radio.receivedPacket(RadioPacketProperty.SignalStrength)
## Returns
* a [number](/types/number) that is the property selected in the **type** parameter.
* a [number](/types/number) that is the property selected in the **type** parameter:
>* ``signal strength``: the value ranges from `-128` to `-42` (`-128` means a weak signal and `-42` means a strong one.)
>* ``serial number``: the value is the serial number of the board sending the packet.
>* ``time``: the value is the system time, in microseconds, of the sender at the time when the packet was sent.
## Example