1

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?

2

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.