j0sh1e
j0sh1e

Reputation: 296

MySQL Data to Arduino

What would be a proper way of getting stored information from a MySQL database inserted into an Arduino script? Also, would the Arduino board be able to connect to the database via the Arduino WiFi Shield, or would there be something else needed?

Upvotes: 1

Views: 269

Answers (1)

Eugene
Eugene

Reputation: 335

I'm using an Arduino Mega with an Ethernet shield.

I send variables in a POST statement for the query in the HTTP request header from the Arduino. A PHP script retrieves the data and puts it into the HTML code that the server will return.

I used the client example provided with the Arduino software as a starting point for my program.

Upvotes: 1

Related Questions