Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs
message_protocol.h File Reference
#include <stdint.h>
Include dependency graph for message_protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  msg_header_t
 
struct  registration_msg_t
 
struct  ack_registration_t
 
struct  measurement_msg_t
 
struct  ack_measurement_t
 
struct  alarm_msg_t
 
struct  ack_alarm_t
 
union  message_data_t
 
struct  message_packet_t
 

Macros

#define MSG_REGISTRATION   0
 
#define MSG_MEASUREMENT   1
 
#define MSG_ALARM   2
 
#define WIFI_CHANNEL   1
 
#define MAX_RETRY   3
 
#define TIMEOUT_MS   200
 

Typedefs

typedef uint8_t esp_message_id_t
 

Macro Definition Documentation

◆ MAX_RETRY

#define MAX_RETRY   3

◆ MSG_ALARM

#define MSG_ALARM   2

◆ MSG_MEASUREMENT

#define MSG_MEASUREMENT   1

◆ MSG_REGISTRATION

#define MSG_REGISTRATION   0

◆ TIMEOUT_MS

#define TIMEOUT_MS   200

◆ WIFI_CHANNEL

#define WIFI_CHANNEL   1

Typedef Documentation

◆ esp_message_id_t

typedef uint8_t esp_message_id_t