SX126x-Arduino
Public Attributes | List of all members
lmh_callback_s Struct Reference

LoRaMac Helper Callbacks. More...

#include <LoRaMacHelper.h>

Public Attributes

uint8_t(* BoardGetBatteryLevel )(void)
 Get the current battery level. More...
 
void(* BoardGetUniqueId )(uint8_t *id)
 Gets the board 64 bits unique ID. More...
 
uint32_t(* BoardGetRandomSeed )(void)
 Returns a pseudo random seed generated using the MCU Unique ID. More...
 
void(* lmh_RxData )(lmh_app_data_t *appdata)
 Process Rx Data received from Lora network. More...
 
void(* lmh_has_joined )()
 callback indicating EndNode has just joined More...
 
void(* lmh_ConfirmClass )(DeviceClass_t Class)
 Confirms the class change. More...
 

Detailed Description

LoRaMac Helper Callbacks.

Member Data Documentation

◆ BoardGetBatteryLevel

uint8_t(* lmh_callback_s::BoardGetBatteryLevel) (void)

Get the current battery level.

Return values
valuebattery level ( 0: very low, 254: fully charged )

◆ BoardGetUniqueId

void(* lmh_callback_s::BoardGetUniqueId) (uint8_t *id)

Gets the board 64 bits unique ID.

Parameters
[in]idPointer to an array that will contain the Unique ID

◆ BoardGetRandomSeed

uint32_t(* lmh_callback_s::BoardGetRandomSeed) (void)

Returns a pseudo random seed generated using the MCU Unique ID.

Return values
seedGenerated pseudo random seed

◆ lmh_RxData

void(* lmh_callback_s::lmh_RxData) (lmh_app_data_t *appdata)

Process Rx Data received from Lora network.

Parameters
[in]AppDataRx structure

◆ lmh_has_joined

void(* lmh_callback_s::lmh_has_joined) ()

callback indicating EndNode has just joined

◆ lmh_ConfirmClass

void(* lmh_callback_s::lmh_ConfirmClass) (DeviceClass_t Class)

Confirms the class change.

Parameters
[in]ClassA, B, or C

The documentation for this struct was generated from the following file: