Replies: 1 comment
-
Hey, When I add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I recently conducted a test and encountered an issue with the JSON encoding in my application, and I would appreciate your assistance. Below is a snippet of my code:
To run the application, I use the following configurations:
CONFIG_MAIN_STACK_SIZE=131072
andCONFIG_JSON_LIBRARY=y
.I expected all 17 devices to be initialized with identical values like this:
{"is_read_vout_supported":false,"last_voltage_mv":0,"max_voltage_mv":-2147483648,"min_voltage_mv":2147483647,"is_read_iout_supported":false,"last_current_ma":0,"max_current_ma":-2147483648,"min_current_ma":2147483647,"last_measurement_from_uptime_ms":0}
However, the console output shows that after the first device, the values become corrupted and shift between fields:
I am unsure if this is an issue with my implementation or a potential problem with the library. I am currently using the latest changes in the JSON library 878640f.
Your help will be appreciated.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions