23 lines
461 B
C
23 lines
461 B
C
#ifndef CONFIGURATION_H
|
|
#define CONFIGURATION_H
|
|
|
|
#include "nvs_flash.h"
|
|
|
|
#include "scd4x_data.h"
|
|
#include "APlib.h"
|
|
#include "ledController.h"
|
|
|
|
struct configuration_data {
|
|
scd4x_data_t* measure;
|
|
scd4x_config_t* sensor;
|
|
led_disp_config_t* leds;
|
|
wifi_config_t* ap_config;
|
|
wifi_config_t* sta_config;
|
|
char hostname[16];
|
|
};
|
|
typedef struct configuration_data configuration_data_t;
|
|
|
|
void init_conf_from_nvs(configuration_data_t* conf, nvs_handle_t nvs);
|
|
|
|
#endif
|