itead / ITEADLIB_Arduino_WeeESP8266

An easy-to-use Arduino ESP8266 library besed on AT firmware.
MIT License
529 stars 284 forks source link

ESP8266 modbus tcpip shows compiling errors even including all library #65

Open sreekanthkanthan opened 8 years ago

sreekanthkanthan commented 8 years ago

i got following errors while compiling.what should i do..? sorry for my poor english

Arduino: 1.6.9 (Windows XP), Board: "Arduino Nano, ATmega328"

Lamp:13: error: no matching function for call to 'ESP8266::ESP8266(SoftwareSerial&, int)'

ESP8266 wifi(wifiSerial,9600);

                         ^

C:\DOCUME~1\sree\LOCALS~1\Temp\arduino_modified_sketch_153828\Lamp.ino:13:29: note: candidates are:

In file included from C:\DOCUME~1\sree\LOCALS~1\Temp\arduino_modified_sketch_153828\Lamp.ino:7:0:

C:\Documents and Settings\sree\My Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:60:5: note: ESP8266::ESP8266(HardwareSerial&, uint32_t)

 ESP8266(HardwareSerial &uart, uint32_t baud = 9600);

 ^

C:\Documents and Settings\sree\My Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:60:5: note: no known conversion for argument 1 from 'SoftwareSerial' to 'HardwareSerial&'

C:\Documents and Settings\sree\My Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:38:7: note: constexpr ESP8266::ESP8266(const ESP8266&)

class ESP8266 {

   ^

C:\Documents and Settings\sree\My Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:38:7: note: candidate expects 1 argument, 2 provided

C:\Documents and Settings\sree\My Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:38:7: note: constexpr ESP8266::ESP8266(ESP8266&&)

C:\Documents and Settings\sree\My Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:38:7: note: candidate expects 1 argument, 2 provided

exit status 1 no matching function for call to 'ESP8266::ESP8266(SoftwareSerial&, int)'

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.