Error in APScan.cpp
Posted: Sat May 06, 2017 8:33 am
Hello, iv been geting this error when compiling:
Arduino: 1.6.13 (Mac OS X), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"
sketch/APScan.cpp: In member function 'bool APScan::start()':
APScan.cpp:14: error: no matching function for call to 'ESP8266WiFiClass::scanNetworks(bool, bool&)'
results = WiFi.scanNetworks(false, settings.apScanHidden); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
^
sketch/APScan.cpp:14:59: note: candidate is:
In file included from sketch/APScan.h:6:0,
from sketch/APScan.cpp:1:
/Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:243:12: note: int8_t ESP8266WiFiClass::scanNetworks(bool)
int8_t scanNetworks(bool async = false);
^
/Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:243:12: note: candidate expects 1 argument, 2 provided
Multiple libraries were found for "ESP8266WiFi.h"
Used: /Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi
Not used: /Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/TFT_Touch_Shield_V2
exit status 1
no matching function for call to 'ESP8266WiFiClass::scanNetworks(bool, bool&)'
With this code in red:
PS: new to all this so bare with me.
Arduino: 1.6.13 (Mac OS X), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"
sketch/APScan.cpp: In member function 'bool APScan::start()':
APScan.cpp:14: error: no matching function for call to 'ESP8266WiFiClass::scanNetworks(bool, bool&)'
results = WiFi.scanNetworks(false, settings.apScanHidden); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
^
sketch/APScan.cpp:14:59: note: candidate is:
In file included from sketch/APScan.h:6:0,
from sketch/APScan.cpp:1:
/Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:243:12: note: int8_t ESP8266WiFiClass::scanNetworks(bool)
int8_t scanNetworks(bool async = false);
^
/Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:243:12: note: candidate expects 1 argument, 2 provided
Multiple libraries were found for "ESP8266WiFi.h"
Used: /Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266WiFi
Not used: /Users/noahmann/Library/Arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/TFT_Touch_Shield_V2
exit status 1
no matching function for call to 'ESP8266WiFiClass::scanNetworks(bool, bool&)'
With this code in red:
Code: Select all
results = WiFi.scanNetworks(false, settings.apScanHidden); // lets scanNetworks return hidden APs. (async = false & show_hidden = true)
PS: new to all this so bare with me.