Added token as option in UI #32
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user