Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
lorawan_downlink_cb Struct Reference

#include <lorawan.h>

Data Fields

uint16_t port
 
void(* cb )(uint8_t port, bool data_pending, int16_t rssi, int8_t snr, uint8_t len, const uint8_t *data)
 Callback function to run on downlink data. More...
 
sys_snode_t node
 

Field Documentation

◆ cb

void(* lorawan_downlink_cb::cb) (uint8_t port, bool data_pending, int16_t rssi, int8_t snr, uint8_t len, const uint8_t *data)

Callback function to run on downlink data.

Note
Callbacks are run on the system workqueue, and should therefore be as short as possible.
Parameters
portPort message was sent on
data_pendingNetwork server has more downlink packets pending
rssiReceived signal strength in dBm
snrSignal to Noise ratio in dBm
lenLength of data received, will be 0 for ACKs
dataData received, will be NULL for ACKs

◆ node

sys_snode_t lorawan_downlink_cb::node

Node for callback list

◆ port

uint16_t lorawan_downlink_cb::port

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