Hello there
I am preparing wireless system based on 10 ESP8266 running Arduino IDE which will be reading RFID tags and send tag numbers into the database server app in the local network via Wi-Fi.
-
ESP 8266-12
Like I said before, I have ten ESP8266-12, and TowiTek RFID reader which use one GPIO pin of the ESP8266-12. When the RFID tag is in the range of the TowiTek reader ESP8266-12 stores tag ID once a second. If any tag is in the range of the TowiTek reader the ESP stores nothing in my ID variable. Every ESP is connected to the one wireless network made by my home router. Each ESP has own number. -
Database Server App
It runs 24/7 and has to send requests to every ESP once a minute sequentially in loop or simultaneously (if possible?) to read the state of the reader. The reader should send answer with the stored ID variable via wifi of course. Db server stores record in database with the ESP number, tag number and date.
Application will be installed on the touchscreen windows/android device connected to the same network as the all ESP's. Data from the base will be prepared by the application for my own purposes.
What I've already done.
- I am able to store the RFID tag with my ESP8266-12 using Arduino IDE,
- I am able to connect my wifi network
What I'm asking about
- The DB server app asking every ESP for its state once a minute and writing record in database when getting answer. Isn't better each other ESP8266 sending data to the DB server once a minute? In the second case are there any possibilities of data collisions?
- Which system will be better for my database application Windows or Android? SQL? MySQL?
- How should I send the data from ESP to my SQL server? With AT commands? Could you link here some libraries? Examples?
I think that now I should begin with searching for the SQL database app or write it myself. But I need your guide to know which way I should go.