Skip to content

Commit

Permalink
make use of the latest OTF API that allows an external buffer to be p…
Browse files Browse the repository at this point in the history
…assed in as headers buffer
  • Loading branch information
tonyrui committed Dec 30, 2022
1 parent af4989b commit 85e1f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenSprinkler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ byte OpenSprinkler::start_network() {
}

if((useEth || get_wifi_mode()==WIFI_MODE_STA) && otc.en>0 && otc.token.length()>=32) {
otf = new OTF::OpenThingsFramework(httpport, otc.server, otc.port, otc.token, false);
otf = new OTF::OpenThingsFramework(httpport, otc.server, otc.port, otc.token, false, ether_buffer, ETHER_BUFFER_SIZE);
DEBUG_PRINTLN(F("Started OTF with remote connection"));
} else {
otf = new OTF::OpenThingsFramework(httpport);
otf = new OTF::OpenThingsFramework(httpport, ether_buffer, ETHER_BUFFER_SIZE);
DEBUG_PRINTLN(F("Started OTF with just local connection"));
}
extern DNSServer *dns;
Expand Down

0 comments on commit 85e1f80

Please sign in to comment.