-->
Page 1 of 2

ESP 2866 sending data to SQL data base

PostPosted: Fri Dec 04, 2015 12:38 pm
by Dageso
HI,

I want to if it is possible to upload data from the esp2866's ADC to a SQL database via the arduino ide with out using an arduino board (using the esp2866 as the microcontroller).

thanks in advance

Re: ESP 2866 sending data to SQL data base

PostPosted: Sat Dec 05, 2015 6:23 am
by torntrousers
Yes . You'll need to give a bit more detail to get help with the code though.

Re: ESP 2866 sending data to SQL data base

PostPosted: Sat Dec 05, 2015 7:31 am
by Dageso
hi,

i want to read the adc which is getting data from a current sensor then i want to use the data and upload it to a sql data base then i am going to create a website which shows the data in the form of the graph

i would like to know how i can connect the esp to the data base as i am using the esp's adc

thanks

Re: ESP 2866 sending data to SQL data base

PostPosted: Sat Dec 05, 2015 9:58 am
by martinayotte
That depends of how your SQL server could receive the data. This server need to provide some kind of interface for the clients. It could be an HTTP server which receive HTTP request and then store parameters/data of the request into the database. But it could be also simple TCP server receiving data thru simple connection in plain text.
So, in other words, you need to define some protocol.