LoRa Basics MAC
LoRaWAN Muxer (lwmux)
The lwmux module arbitrates access to the LoRaWAN uplink layer for mutiple independent modules. Further, it provides hooks for LoRaWAN layer events and a higher-lever API for accessing basic network functions.
The lwmux module provides the following hooks:
This hook is called on every LMiC event and allows the consumer to react to LoRaWAN layer events such as downlink reception. The parameter e contains the current LMIC event.
lwm_downlink(int port, unsigned char* data, int dlen, unsigned int flags)
This hook is called whenever a downlink with a non-zero port is received.
The API for the lwmux module is defined in the followig header file:
Set the current operation mode of the LoRaWAN layer.
lwm_request_send(lwm_job* job, unsigned int priority, lwm_tx txfunc)
Request a message transmission opportunity.
Cancel a previous request for a message transmission opportunity.
|Parameters:||job – Pointer to the LWM job structure.|