|
Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
|
Header file for the LoRaWAN emulator backend APIs. More...
Go to the source code of this file.
Typedefs | |
| typedef void(* | lorawan_uplink_cb_t) (uint8_t port, uint8_t len, const uint8_t *data) |
| Defines the emulator uplink callback handler function signature. | |
Functions | |
| void | lorawan_emul_send_downlink (uint8_t port, bool data_pending, int16_t rssi, int8_t snr, uint8_t len, const uint8_t *data) |
| Emulate LoRaWAN downlink message. | |
| void | lorawan_emul_register_uplink_callback (lorawan_uplink_cb_t cb) |
| Register callback for emulated uplink messages. | |
Header file for the LoRaWAN emulator backend APIs.
Defines the emulator uplink callback handler function signature.
| port | LoRaWAN port |
| len | Payload data length |
| data | Pointer to the payload data |
| void lorawan_emul_register_uplink_callback | ( | lorawan_uplink_cb_t | cb | ) |
Register callback for emulated uplink messages.
| cb | Pointer to the uplink callback handler function |
| void lorawan_emul_send_downlink | ( | uint8_t | port, |
| bool | data_pending, | ||
| int16_t | rssi, | ||
| int8_t | snr, | ||
| uint8_t | len, | ||
| const uint8_t * | data ) |
Emulate LoRaWAN downlink message.
| port | Port message was sent on |
| data_pending | Network server has more downlink packets pending |
| rssi | Received signal strength in dBm |
| snr | Signal to Noise ratio in dBm |
| len | Length of data received, will be 0 for ACKs |
| data | Data received, will be NULL for ACKs |