Skip to content

Commit

Permalink
Replace StreamUtils/StringStream with esp8266-core/StreamString
Browse files Browse the repository at this point in the history
  • Loading branch information
jclds139 committed Sep 24, 2024
1 parent 3df5164 commit f16e2a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions geoscope/MQTTService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define MQTT_MAX_PACKET_SIZE 15000
#define MQTT_MAX_TRANSFER_SIZE WIFICLIENT_MAX_PACKET_SIZE
#include <PubSubClient.h>
#include <StreamUtils.h>
#include <StreamString.h>

#include <string.h>
#include <strings.h>
Expand Down Expand Up @@ -68,7 +68,7 @@ void mqttMessageHandler(char* topic, byte* payload, unsigned int len) {
strncat(cmdbuf, (char*)payload, len);

Stream* oldAlt = cli.getAltPort();
StringStream tempOut;
StreamString tempOut;
cli.attachAltPort(&tempOut);
//temporarily put capture CLI output in a String, for reporting

Expand All @@ -77,7 +77,7 @@ void mqttMessageHandler(char* topic, byte* payload, unsigned int len) {
//feed the input + payload as a command to the cli (for reconfiguring)


mqttNotify(tempOut.str());
mqttNotify(tempOut);
//send the captured output back over MQTT

cli.attachAltPort(oldAlt);
Expand Down
1 change: 0 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ framework = arduino
lib_deps =
knolleary/PubSubClient
Commander
StreamUtils
TelnetStream
https://github.com/akaJes/AsyncPing
lib_extra_dirs =
Expand Down

0 comments on commit f16e2a3

Please sign in to comment.