Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V6 Documentation ArduinoJson PubSubClient with StreamUtils #2094

Closed
softwarecrash opened this issue May 17, 2024 · 1 comment
Closed

V6 Documentation ArduinoJson PubSubClient with StreamUtils #2094

softwarecrash opened this issue May 17, 2024 · 1 comment
Labels
bug v6 ArduinoJson 6

Comments

@softwarecrash
Copy link

hello,
i struggle a bit with this example
on 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

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

@bblanchon
Copy link
Owner

Hi @softwarecrash,

Thank you very much for reporting this issue.
It's BufferingPrint, not WriteBufferingPrint.

Best regards,
Benoit

@bblanchon bblanchon added bug v6 ArduinoJson 6 and removed question labels May 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug v6 ArduinoJson 6
Projects
None yet
Development

No branches or pull requests

2 participants