-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
'StaticJsonDocument' was not declared in this scope #2782
Comments
resolved it by adding |
I think this include is also needed for |
Can you make a PR for the addition of both includes? |
hmm. Now it compiles but gives me an error in the log. Other than that, I am having a hard time copying that line from the weblog as it jumps away then I try to do so. Yes, I have unchecked Autoscroll. Try strg+f "failed". You see it but you cannot grab it :-o |
There is a copy button on the web page. Then you can copy/paste it into notepad or something similar. |
what is the command you are giving it? I suppose is an irsendAC command In line 210 of P035.ino |
Is it possible there to include the needed size in the log? |
I dont think so |
Well if you know how much the message is you want to encode, you can give a rough estimate since you know the JSON structure and thus have a fixed offset. |
well I have done this and I had concluded that 300 would be enought |
The command that I send is: The log shows now:
Btw, this does compile of of the box:
Cant't test it right now, its too early in the morning to wake everyone by playing with the AC. Will report back. |
Encapsulate the whole JSON inbetween '
|
You don't have a 'testing' and 'production' environment for that? ;) |
Yep, see also #2724 |
I wish I had. Whenever I do a
I'll try but I am pretty sure it worked without. The command comes from OpenHAB via MQTT and I did not touch that part of my setup. I just updated the ESP. |
Ah, I get it. |
Check also https://www.letscontrolit.com/forum/viewtopic.php?f=2&t=6850 |
This seems to have been fixed now, so can be closed. |
As soon as I add #define P016_P035_Extended_AC to custom.h, I get a compile error:
'StaticJsonDocument' was not declared in this scope
my Custom.h:
The text was updated successfully, but these errors were encountered: