-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Convert Json to uint8_t #1008
Comments
What should be the content? The byte representation of the JSON text? |
Hi My json content looks like this {"lat": -24.673566818237305,"lon": 25.937171936035156} Code: static json theJsonData;
uint8_t data[64] = theJsonData; <-- geting error on compiling. LMIC_setTxData2(1, data, sizeof(data)-1, 0); |
Functions cannot return C arrays, so you won't be able to do that. You could instead use |
So |
@qvs5010 Do you need further assistance? |
Hi
|
Thanks for checking back! |
I want to convert a 110B Json file into unit8_t within limit upto 20 bytes . |
Hi
How can I convert my JSON to a uint8_t?
is this even possible?
uint8_t data[64] = theJsonData;
The text was updated successfully, but these errors were encountered: