Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By danbicks
#33171 Moz,

This is good work buddy. How easy would it be to scan through the Json file and search for a specific entry?

I.E lets say we have a json formatted file with card numbers for access control stored in it, along with some other parameters, would it be a quick process for the esp to search through this file and check to see if a given card number exists? What sort of time response could we expect?

Cheers buddy

Dans
User avatar
By Mario Mikočević
#33380 Heya Dans,

JSON is a simple data container, very linear, so any scan should be very easy. And yes, on big amounts of data, search could take awhile.
If you take data to ESP I think the bigger problem is speed of reading from the card than computing JSON data.

--
Mozz
User avatar
By danbicks
#33393 Hey,

Nice to here from you mate :)

Yep been tinkering with it, have some stuff uploaded to a server will be pulling down files and loading to SPIFFS, putting together a solution for a client, card reading I have working really quick :) the Json stuff is brilliant excellent library.

Your example of the good old wifi scan works superb well done mate great work.

Cheers buddy

Dans