RadioLib
Universal wireless communication library for Arduino
Loading...
Searching...
No Matches
LoRaWANPackageTS003 Class Reference

LoRaWAN Application package for TS003 Application Time. More...

#include <LoRaWANPackageTS003.h>

Inheritance diagram for LoRaWANPackageTS003:
LoRaWANPackage

Public Types

typedef void(* SetSecondsCb_t) (RadioLibTime_t)
 Set the setSeconds callback function.
Public Types inherited from LoRaWANPackage
typedef RadioLibTime_t(* GetSecondsCb_t) ()

Public Member Functions

 LoRaWANPackageTS003 (const LoRaWANPackageTS003 &obj)=delete
size_t processData (const uint8_t *dataDown, size_t lenDown, LoRaWANEvent_t *event) override
 Process downlink data for the TS003 application time package.
int16_t requestAppTime (bool force=false)
 Send an application time request.
void setSecondsCb (SetSecondsCb_t setSecondsCb)
LoRaWANTaskInfo hasTask () override
 Find out what the next task is and when it occurs.
void doAction () override
 Perform an ACTION task (if any).
Public Member Functions inherited from LoRaWANPackage
 LoRaWANPackage (const LoRaWANPackage &obj)=delete
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.

Detailed Description

LoRaWAN Application package for TS003 Application Time.

Member Typedef Documentation

◆ SetSecondsCb_t

typedef void(* LoRaWANPackageTS003::SetSecondsCb_t) (RadioLibTime_t)

Set the setSeconds callback function.

Parameters
setSecondsCallback function to set device time

Member Function Documentation

◆ doAction()

void LoRaWANPackageTS003::doAction ( )
overridevirtual

Perform an ACTION task (if any).

Reimplemented from LoRaWANPackage.

◆ hasTask()

LoRaWANTaskInfo LoRaWANPackageTS003::hasTask ( )
overridevirtual

Find out what the next task is and when it occurs.

Returns
LoRaWANTaskInfo containing task type and time

Reimplemented from LoRaWANPackage.

◆ processData()

size_t LoRaWANPackageTS003::processData ( const uint8_t * dataDown,
size_t lenDown,
LoRaWANEvent_t * event )
overridevirtual

Process downlink data for the TS003 application time package.

Parameters
dataDownPointer to received downlink data
lenDownLength of downlink data

Reimplemented from LoRaWANPackage.

◆ requestAppTime()

int16_t LoRaWANPackageTS003::requestAppTime ( bool force = false)

Send an application time request.

Returns
Status Codes

The documentation for this class was generated from the following files: