2.1.1 LORAWAN_Init
Definition: This function initializes the LoRaWAN MAC stack and radio software layers. During this initialization procedure:
- Software timers required for MAC operations are created
- Application callback routine function pointers are stored in data base (DB)
- Radio is initialized
- MAC-related PDS files are registered
Syntax
void LORAWAN_Init(AppDataCb_t appdata, JoinResponseCb_t joindata);
Input Parameters
Parameter Name |
Parameter Type |
Description |
---|---|---|
|
|
Pointer to function that is called when a down-link is received |
|
|
Pointer to function that is called when join response is received |
Return Type and Values
<void>
API Type – Synchronous