user49138: I am working on a project to send sensor values from esp8266's Wemos D1 mini to MySQL. 
I tried using the library MySQLconnection.h but I couldn't make it to connect to wifi. So I uploaded a simple program to connect the board to WiFi using ESP8266.h but I got the error that Unable to compile for Wemos D1 board.
Please tell me the right procedure to select the right library for the problem defined.

user27653: You should break your problem down into simple parts, which it seems you are on-track to do. Your ultimate goal appears to break down into the following sub-tasks (not in order):

Read sensor value
Connect to a WiFi network
Connect to a MySQL server
Send sensor data to MySQL database

You are unlikely to find a single library to do all of these tasks, but as progress in solving each step, any library that works is the "Right" one, in general. Choose a library that solves an individual task.
You say you tried to upload a simple program to only connect to WiFi, but that it did not compile. The clue to why it did not compile will be found in the actual compile error message. If you can update your question with the error message and the code to the simple program, you can get some guidance from the users of this site to solve that problem.

49138: <p>I am working on a project to send sensor values from esp8266's Wemos D1 mini to MySQL. 
I tried using the library MySQLconnection.h but I couldn't make it to connect to wifi. So I uploaded a simple program to connect the board to WiFi using ESP8266.h but I got the error that Unable to compile for Wemos D1 board.</p>

<p>Please tell me the right procedure to select the right library for the problem defined.</p>
 27653: <p>You should break your problem down into simple parts, which it seems you are on-track to do. Your ultimate goal appears to break down into the following sub-tasks (not in order):</p>

<ol>
<li>Read sensor value</li>
<li>Connect to a WiFi network</li>
<li>Connect to a MySQL server</li>
<li>Send sensor data to MySQL database</li>
</ol>

<p>You are unlikely to find a single library to do all of these tasks, but as progress in solving each step, any library that works is the "Right" one, in general. Choose a library that solves an individual task.</p>

<p>You say you tried to upload a simple program to only connect to WiFi, but that it did not compile. The clue to why it did not compile will be found in the actual compile error message. If you can update your question with the error message and the code to the simple program, you can get some guidance from the users of this site to solve that problem.</p>
