diff --git a/include/cmd_settings.h b/include/cmd_settings.h new file mode 100644 index 0000000..758dfcf --- /dev/null +++ b/include/cmd_settings.h @@ -0,0 +1,24 @@ +#ifndef __CMD_SETTINGS_H_ +#define __CMD_SETTINGS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +static struct wifi_settings { + uint8_t enabled; + uint8_t mode; // 0 = station, 1 = AP + char *ssid; + char *password; +}; + +static struct { + struct wifi_settings wifi; +} lorcomm_settings; + +uint8_t init_settings_cmds(); + +#ifdef __cplusplus +} +#endif +#endif