mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
improve includes
add ssid and ip to debug out
This commit is contained in:
parent
508f0802d5
commit
03da6393d5
@ -23,7 +23,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ESP8266WiFi.h"
|
|
||||||
#include "ESP8266WiFiMulti.h"
|
#include "ESP8266WiFiMulti.h"
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
@ -76,6 +75,7 @@ wl_status_t ESP8266WiFiMulti::run(void) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(known) {
|
if(known) {
|
||||||
DEBUG_WIFI_MULTI(" ---> ");
|
DEBUG_WIFI_MULTI(" ---> ");
|
||||||
} else {
|
} else {
|
||||||
@ -102,9 +102,13 @@ wl_status_t ESP8266WiFiMulti::run(void) {
|
|||||||
status = WiFi.status();
|
status = WiFi.status();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IPAddress ip;
|
||||||
switch(status) {
|
switch(status) {
|
||||||
case WL_CONNECTED:
|
case WL_CONNECTED:
|
||||||
DEBUG_WIFI_MULTI("[WIFI] Connecting Done.\n");
|
ip = WiFi.localIP();
|
||||||
|
DEBUG_WIFI_MULTI("[WIFI] Connecting done.\n");
|
||||||
|
DEBUG_WIFI_MULTI("[WIFI] SSID: %s\n", WiFi.SSID());
|
||||||
|
DEBUG_WIFI_MULTI("[WIFI] IP: %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||||
break;
|
break;
|
||||||
case WL_NO_SSID_AVAIL:
|
case WL_NO_SSID_AVAIL:
|
||||||
DEBUG_WIFI_MULTI("[WIFI] Connecting Faild AP not found.\n");
|
DEBUG_WIFI_MULTI("[WIFI] Connecting Faild AP not found.\n");
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#ifndef WIFICLIENTMULTI_H_
|
#ifndef WIFICLIENTMULTI_H_
|
||||||
#define WIFICLIENTMULTI_H_
|
#define WIFICLIENTMULTI_H_
|
||||||
|
|
||||||
|
#include "ESP8266WiFi.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
//#define DEBUG_WIFI_MULTI(...) os_printf( __VA_ARGS__ )
|
//#define DEBUG_WIFI_MULTI(...) os_printf( __VA_ARGS__ )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user