Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
communication_manager.h
Go to the documentation of this file.
1#ifndef COMMUNICATION_MANAGER
2#define COMMUNICATION_MANAGER
3
6#include "master/fifo.h"
9
10#include <stdint.h>
11
18void process_esp_msg(void);
19
27void queue_lora_registration(uint8_t slave_idx);
28
35
41void queue_lora_alarm(uint8_t slave_id);
42
49void send_lora(void);
50
51#endif // COMMUNICATION_MANAGER
void queue_lora_registration(uint8_t slave_idx)
Queue a LoRa registration message for a slave.
void queue_lora_alarm(uint8_t slave_id)
Queue a LoRa alarm message for a slave.
void queue_lora_periodic(void)
Queue a LoRa periodic status message for all registered slaves.
void process_esp_msg(void)
Process one ESP-NOW message from the message FIFO.
void send_lora(void)
Send one LoRa message from the lora_fifo.