#ifndef _CONFIGURATION_H_ #define _CONFIGURATION_H_ #include #include #include #define MAX_MODBUS_POLL_SLOTS 16 #define UNASSIGNED 0 #define COILS 1 #define DISCRETE_INPUTS 2 #define HOLDING_REGISTERS 3 #define INPUT_REGISTERS 4 typedef struct modbus_poll_s { int typ; int id; int address; } modbus_poll_t; typedef struct config_s { uint32_t magic; uint8_t appEui[8]; uint8_t appKey[16]; modbus_poll_t modbus_poll_slots[MAX_MODBUS_POLL_SLOTS]; } config_t; void configurationSetup(); void configurationLoop(); void configLoad(); #endif // _CONFIGURATION_H_