Added token as option in UI #32

This commit is contained in:
Magnus Persson
2022-01-31 18:50:47 +01:00
parent 761d570d39
commit e1cc54d188
12 changed files with 36 additions and 8 deletions

View File

@ -104,6 +104,8 @@ class Config {
// Push target settings
String _brewfatherPushUrl = "";
String _token = "";
String _httpUrl = "";
String _httpHeader[2] = { "Content-Type: application/json", "" };
String _http2Url = "";
@ -174,6 +176,13 @@ class Config {
return _brewfatherPushUrl.length() ? true : false;
}
// Token parameter
const char* getToken() { return _token.c_str(); }
void setToken(String s) {
_token = s;
_saveNeeded = true;
}
// Standard HTTP
const char* getHttpUrl() { return _httpUrl.c_str(); }
void setHttpUrl(String s) {