andresarmento / modbus-arduino

A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
BSD 3-Clause "New" or "Revised" License
455 stars 267 forks source link

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

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)'