Common interface for all application packages.
More...
#include <LoRaWANPacMan.h>
|
|
| LoRaWANPackage (const LoRaWANPackage &obj)=delete |
| |
| virtual size_t | processData (const uint8_t *data, size_t len, LoRaWANEvent_t *event) |
| | Process a sequence of package commands and return how many bytes were consumed.
|
| |
| virtual LoRaWANTaskInfo | hasTask () |
| | Query the next scheduled task for this package.
|
| |
| virtual void | doAction () |
| | Perform an ACTION task (if any). Default no-op.
|
| |
| void | getUplinkData (uint8_t *dataOut, size_t *lenOut) |
| | Get uplink data for UPLINK tasks. Returns internal buffer.
|
| |
| RadioLibTime_t | getSeconds () |
| | Get current time via the stored callback.
|
| |
Common interface for all application packages.
◆ doAction()
| void LoRaWANPackage::doAction |
( |
| ) |
|
|
virtual |
◆ getSeconds()
Get current time via the stored callback.
- Returns
- Current time in seconds from the callback
◆ getUplinkData()
| void LoRaWANPackage::getUplinkData |
( |
uint8_t * |
dataOut, |
|
|
size_t * |
lenOut |
|
) |
| |
Get uplink data for UPLINK tasks. Returns internal buffer.
- Parameters
-
| dataOut | Pointer to uplink buffer |
| lenOut | Pointer to uplink length |
◆ hasTask()
◆ processData()
| size_t LoRaWANPackage::processData |
( |
const uint8_t * |
data, |
|
|
size_t |
len, |
|
|
LoRaWANEvent_t * |
event |
|
) |
| |
|
virtual |
Process a sequence of package commands and return how many bytes were consumed.
- Parameters
-
| data | Pointer to incoming data |
| len | Length of incoming data |
| event | Downlink event details |
- Returns
- Number of bytes consumed
Reimplemented in LoRaWANPackageTS003, and LoRaWANPackageTS009.
The documentation for this class was generated from the following files:
- src/protocols/LoRaWAN/LoRaWANPacMan.h
- src/protocols/LoRaWAN/LoRaWANPacMan.cpp