Documentation
¶
Overview ¶
Package toa provides methods for computing a LoRaWAN packet's time-on-air.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compute ¶
Compute computes the time-on-air for the given payload size and the TxSettings. This function takes into account PHYPayload.
Example ¶
var downlink ttnpb.DownlinkMessage
downlink = getDownlink()
toa, err := Compute(len(downlink.RawPayload), *downlink.GetScheduled())
if err != nil {
panic(err)
}
fmt.Println("Time on air:", toa)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.