-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Problems on migrating for V.5 to V.6 (ESP8266 HVAC / modbus) program) #1189
Comments
Hi @jascdk, I'd sincerely like to help you out.
Thank you for your understanding. Best regards, |
Sure |
hi @bblanchon :) First of all thanks for all your great work with the library. In my house we have a HVAC system that communicates via modbus. I have attached an Wemos D1 mini to it to control it. It uses this maincode : https://pastebin.com/QnEvGme9 (so you can se it as an reference) 1: My main problem was that the code used json 5 and I would update it to version 6, so it uses the latest version of the library. Make less trouble:) I have tried asking help from my wife (she codes at her work - but often won't help me, as she hates all my home automation stuff :D ) I did though manage to persuade her to look at my problem. Which gave this result It actually works, but I can't figure out why she did not change all the "root" to "doc" instead like mentioned in you videos. She could not give me an answer of this. Does it looks right to you? |
Hi @jascdk, What she wrote seems correct. I use the name "doc" for the complete document and "root" for the root object, so using both names is fine. There is just one thing that surprises me though: it's that the JsonObject HandleRequest(JsonDocument& doc); To me, passing by value is not appropriate here because it's not a real copy. Lastly, you don't need to return the root object from void writeResponse(WiFiClient& client, const JsonDocument& doc); Does that make sense? Best regards, |
hi @bblanchon :) Thanks for a very quick reply. I will try make the changes you describe. And then I will talk to my wife and hear her about it, and come back to her with her answer:) Thanks a lot! Cheers:) |
Copy-contructor of |
@bblanchon Thanks Benoit:) I got my wife to help with the fixes as you mentioned - it just works now - thanks alot;) All the best Jacob / Denmark |
Hi Benoit
I am currently struggling to get a program up and running with Arduino JSON v.6 .
Im a noob at coding, but hoping you / others could help me on the way.
I have a program that I would like to put on a esp8266 microcontroller - it is going to control our local HVAC over modbus.
I simply can't figure out how to convert it - I have looked everywhere and also you nice videos on YouTube. I don't have any coding background at all :/
Looking forward to hear from you:)
The text was updated successfully, but these errors were encountered: