Skip to content

Commit

Permalink
Enable BF push, add stubs for BRF
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Mar 5, 2020
1 parent 4ed459b commit d512eeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pushhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ void setDoBRFTarget() {
void tickerLoop() {
Bubbles *bubble = Bubbles::getInstance();
URLTarget *urlTarget = URLTarget::getInstance();
BFTarget *bfTarget = BFTarget::getInstance();
// BRFTarget *brfTarget = BRFTarget::getInstance();

// Handle JSON posts
//
Expand All @@ -164,13 +166,13 @@ void tickerLoop() {
// Do Brewer's Friend Post
if (doBFTarget) { // Do BF post
doBFTarget = false;
// urlTarget->push(); // TODO - Attach BF Target
bfTarget->push();
}
//
// Do Brewfather Post
if (doBRFTarget) { // Do BF post
doBRFTarget = false;
// urlTarget->push(); // TODO - Attach BF Target
// brfTarget->push(); // TODO - Attach BF Target
}

// Handle the board LED status
Expand Down
1 change: 1 addition & 0 deletions src/pushhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SOFTWARE. */
#include "pushtarget.h"
#include "urltarget.h"
#include "bftarget.h"
//#include "brftarget.h"
#include <ESP8266WiFi.h>

IPAddress resolveHost(const char hostname[129]);
Expand Down

0 comments on commit d512eeb

Please sign in to comment.