Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to synchronous HTTP server #250

Merged
merged 3 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ lib_deps =
; thijse/ArduinoLog @ 1.1.1 ; https://github.com/thijse/Arduino-Log.git
https://github.com/thorrak/Arduino-Log.git ; // Need this until ArduinoLog merges https://github.com/thijse/Arduino-Log/pull/23
https://github.com/lbussy/esptelnet.git
https://github.com/me-no-dev/ESPAsyncWebServer.git
https://github.com/thorrak/WiFiManager.git#feature_asyncwebserver
https://github.com/tzapu/WiFiManager.git#0d84861270c3cd64f72a4eaf34443ee580d2547e ; Anchor to latest commit as of 1/26/24
h2zero/NimBLE-Arduino @ 1.4.1 ; https://github.com/h2zero/NimBLE-Arduino
256dpi/MQTT @ 2.5.1 ; https://github.com/256dpi/arduino-mqtt
lbussy/LCBUrl @ ^1.1.9
Expand Down
71 changes: 71 additions & 0 deletions src/JsonKeys.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
constexpr const char* tiltColorSuffixes[] = {
"_red", // 0 = TILT_COLOR_RED
"_green", // 1 = TILT_COLOR_GREEN
"_black", // 2 = TILT_COLOR_BLACK
"_purple", // 3 = TILT_COLOR_PURPLE
"_orange", // 4 = TILT_COLOR_ORANGE
"_blue", // 5 = TILT_COLOR_BLUE
"_yellow", // 6 = TILT_COLOR_YELLOW
"_pink", // 7 = TILT_COLOR_PINK
};



namespace CalibrationKeys {
constexpr auto applyCalibration = "applyCalibration";
constexpr auto tempCorrect = "tempCorrect";
}; // namespace CalibrationKeys


namespace CloudTargetSettings {
constexpr auto cloudTarget = "cloudTarget";
}

namespace LocalTargetSettings {
constexpr auto localTargetURL = "localTargetURL";
constexpr auto localTargetPushEvery = "localTargetPushEvery";
}

namespace GoogleSheetsSettings {
constexpr auto scriptsURL = "scriptsURL";
constexpr auto scriptsEmail = "scriptsEmail";
constexpr auto gsheetsPrefix = "sheetName";
}


namespace BrewersFriendSettings {
constexpr auto brewersFriendKey = "brewersFriendKey";
}

namespace BrewfatherSettings {
constexpr auto brewfatherKey = "brewfatherKey";
}

namespace UserTargetSettings {
constexpr auto userTargetURL = "userTargetURL";
}

namespace GrainfatherSettings {
constexpr auto grainfatherURLPrefix = "grainfatherURL";
}

namespace BrewstatusSettings {
constexpr auto brewstatusURL = "brewstatusURL";
constexpr auto brewstatusPushEvery = "brewstatusPushEvery";
}

namespace TaplistioSettings {
constexpr auto taplistioURL = "taplistioURL";
constexpr auto taplistioPushEvery = "taplistioPushEvery";
}

namespace MQTTSettings {
constexpr auto mqttBrokerHost = "mqttBrokerHost";
constexpr auto mqttBrokerPort = "mqttBrokerPort";
constexpr auto mqttPushEvery = "mqttPushEvery";
constexpr auto mqttUsername = "mqttUsername";
constexpr auto mqttPassword = "mqttPassword";
constexpr auto mqttTopic = "mqttTopic";

}

Loading