-
-
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
Using default value problem (x=json["Test"] | x;) #675
Comments
Hi @ttlappalainen, I cannot reproduce the bug. Please provide an MCVE. Regards, |
Now I am not sure is this bug or feature. With below code first returns wrong and second right. Also I expect that the reason is that you when I am using existing data, it has internally double object.
|
DynamicJsonBuffer jsonBuffer(1000);
char buf[1000];
DynamicJsonBuffer jsonBuffer2(1000); Are you sure that there is enough RAM on your micro-controller? |
Teensy 3.5 RAM 196 kB. Totally with flash more than on my first computer:) |
OK, now I see it.
To me, it's a bug because it's not consistent with: uint8_t v = jsonControl2["Test"]; // return 100 as expected |
OK - thanks. Meanwhile I can go around problem with |
I have problem with using default value. I have on json: "Test": 1
Works fine and returns 1, but
returns 5 allways. Last works fine without | v
The text was updated successfully, but these errors were encountered: