-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
LittleFS with ArduinoJSON #1473
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
Comments
Hi @davidmariag, I didn't understand your question, so here are a few remarks about the code above.
I'm pretty sure there is a compiler warning on this line; it should be
This is a very common anti-pattern; I don't understand why so many users are doing this.
This line stores a pointer to the temporary buffer; the pointer dangles as soon as the function exits. I hope this will help. Best regards, |
Ok I'll look at the examples and see if I can make heads or tails of em. I'll post here if I have more questions after. |
I think it is because beginners like me see it as a SD card code and give up with converting it. Maybe if you have time you could do a video on LittleFS specifically. |
Ok I got an example to work with LittleFS to increment the variable, see below.
So I am trying to store [10] RFID tags and the name associated to them, what is the correct way to edit this code to make that work? I will need and int Array to bring the card number in to the program to edit and compare them. What about the names? |
Hi @davidmariag, To store up to 10 RFID tags, you need an array of 10 structures. Best regards, |
I am using the ArduinoJSON library with LittlesFS and have used it on quite a few projects successfully. However never quite like this. I have int arrays, long arrays and a char array. Please see the code below. Can any one help me with the syntax for the char array? Please see the commented line in the code.
PS not sure how to mark this as a question..
The text was updated successfully, but these errors were encountered: