forked from mlukasek/M5_NightscoutMon
-
Notifications
You must be signed in to change notification settings - Fork 2
/
M5NSconfig.h
25 lines (20 loc) · 1002 Bytes
/
M5NSconfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _M5NSCONFIG_H
#define _M5NSCONFIG_H
#include <M5Stack.h>
#include "IniFile.h"
struct tConfig {
char url[64];
char token[32]; // security token
int timeZone = 3600; // time zone offset in hours, must be corrected for internatinal use and DST
int dst = 0; // DST time offset in hours, must be corrected for internatinal use and DST
int show_mgdl = 0; // 0 = display mg/DL, 1 = diplay mmol/L
int restart_at_logged_errors = 0; // restart device after particular number of errors in the log (0 = do not restart)
uint8_t brightness1, brightness2, brightness3;
char wlanssid[10][32];
char wlanpass[10][32];
// password to use for ble client (iphone app) to authenticate towards M5 Stack, immediately after connecting. If not set then M5Stack will generate temporary password
// if password generated by M5Stack, then the password needs to be send to the client, the very first time
char blepassword[64];
} ;
void readConfiguration(char *iniFilename, tConfig *cfg);
#endif