0

I can read temperature and humidity using sensor with Raspberry Pi 2 using C. The problem is when I execute my code, data only display on the screen but not be saved in the database. But I want to save them into my MySQL database. How can I do it?

4
  • 1
    share the mysql portion of your code that you have tried so far. This will help other to understand where it went wrong. Commented Mar 20, 2018 at 3:39
  • I don't know how to insert data to mysql in C so I haven't written mysql portion yet Commented Mar 20, 2018 at 4:01
  • 1
    then please follow these two answeres 1 , 2 and do some study. You will get this. Commented Mar 20, 2018 at 4:16
  • Thanks a lot! It's very useful with me. Commented Mar 20, 2018 at 12:14

0

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.