WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f7fd966

Browse files
committed
Fixed url for brewlogger
1 parent 35be980 commit f7fd966

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/brewlogger.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ SOFTWARE.
2525
#include <kegconfig.hpp>
2626
#include <log.hpp>
2727

28+
constexpr auto BREWLOGGER_API = "/api/pour/public";
29+
2830
void BrewLogger::sendPourInformation(UnitIndex idx, float pourVol,
2931
float kegVol) {
3032
if (strlen(myConfig.getBrewLoggerUrl()) == 0) return;
@@ -49,7 +51,9 @@ void BrewLogger::sendPourInformation(UnitIndex idx, float pourVol,
4951
EspSerial.print(CR);
5052
// #endif
5153

52-
out = _push->sendHttpPost(out, myConfig.getBrewLoggerUrl(),
54+
String url = myConfig.getBrewLoggerUrl() + String(BREWLOGGER_API);
55+
56+
out = _push->sendHttpPost(out, url.c_str(),
5357
"Content-Type: application/json", "");
5458
updateStatus(out);
5559
Log.info(F("BLOG: Response %s." CR), out.c_str());
@@ -77,7 +81,9 @@ void BrewLogger::sendKegInformation(UnitIndex idx, float kegVol) {
7781
EspSerial.print(CR);
7882
// #endif
7983

80-
out = _push->sendHttpPost(out, myConfig.getBrewLoggerUrl(),
84+
String url = myConfig.getBrewLoggerUrl() + String(BREWLOGGER_API);
85+
86+
out = _push->sendHttpPost(out, url.c_str(),
8187
"Content-Type: application/json", "");
8288
updateStatus(out);
8389
Log.info(F("BLOG: Response %s." CR), out.c_str());

0 commit comments

Comments
 (0)