Update 'DHT11toMYSQL.ino'
This commit is contained in:
@@ -18,6 +18,7 @@ String PATH_NAME = "/search";
|
|||||||
WiFiClient client;
|
WiFiClient client;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
|
||||||
//Initialize serial and wait for port to open:
|
//Initialize serial and wait for port to open:
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
||||||
@@ -26,10 +27,11 @@ void setup() {
|
|||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to Network named: ");
|
Serial.print("Attempting to connect to Network named: ");
|
||||||
Serial.println(ssid); // print the network name (SSID);
|
Serial.println(ssid); // print the network name (SSID);
|
||||||
|
|
||||||
// Connect to WPA/WPA2 network:
|
// Connect to WPA/WPA2 network:
|
||||||
status = WiFi.begin(ssid, pass);
|
status = WiFi.begin(ssid, pass);
|
||||||
}
|
}
|
||||||
|
|
||||||
// print the SSID of the network you're attached to:
|
// print the SSID of the network you're attached to:
|
||||||
Serial.print("SSID: ");
|
Serial.print("SSID: ");
|
||||||
Serial.println(WiFi.SSID());
|
Serial.println(WiFi.SSID());
|
||||||
|
|||||||
Reference in New Issue
Block a user