Closed softwarecrash closed 1 month ago
hello, i struggle a bit with this example on https://arduinojson.org/v6/how-to/use-arduinojson-with-pubsubclient/
https://arduinojson.org/v6/how-to/use-arduinojson-with-pubsubclient/
client.beginPublish(topic, measureJson(doc), retained); WriteBufferingPrint bufferedClient(client, 32); serializeJson(doc, bufferedClient); bufferedClient.flush(); client.endPublish();
it deepens on Streamutils.
but streamutils doesnt have WriteBufferingPrint
WriteBufferingPrint
so the compiler throws a error like error: 'WriteBufferingPrint' was not declared in this scope
error: 'WriteBufferingPrint' was not declared in this scope
what do i wrong?
ArduinoJson 6.21.3 PubSubClient 2.8 StreamUtils 1.8.0
Hi @softwarecrash,
Thank you very much for reporting this issue. It's BufferingPrint, not WriteBufferingPrint.
BufferingPrint
Best regards, Benoit
hello, i struggle a bit with this example on
https://arduinojson.org/v6/how-to/use-arduinojson-with-pubsubclient/
it deepens on Streamutils.
but streamutils doesnt have
WriteBufferingPrint
so the compiler throws a error like
error: 'WriteBufferingPrint' was not declared in this scope
what do i wrong?
ArduinoJson 6.21.3 PubSubClient 2.8 StreamUtils 1.8.0