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
453 stars 267 forks source link

ModbusIP_ESP8266AT #26

Open ogzhnozdgn opened 7 years ago

ogzhnozdgn commented 7 years ago

Arduino:1.8.2 (Windows 10), Kart:"Arduino/Genuino Uno"

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

ESP8266 wifi(wifiSerial, 9600);

                          ^

C:\Users\Oguzhan Ozdogan\Desktop\sketch_may07b\sketch_may07b.ino:13:30: note: candidates are:

In file included from C:\Users\Oguzhan Ozdogan\Desktop\sketch_may07b\sketch_may07b.ino:7:0:

C:\Users\Oguzhan Ozdogan\Documents\Arduino\libraries\ESP8266/ESP8266.h:60:5: note: ESP8266::ESP8266(HardwareSerial&, uint32_t)

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

 ^

C:\Users\Oguzhan Ozdogan\Documents\Arduino\libraries\ESP8266/ESP8266.h:60:5: note: no known conversion for argument 1 from 'SoftwareSerial' to 'HardwareSerial&'

C:\Users\Oguzhan Ozdogan\Documents\Arduino\libraries\ESP8266/ESP8266.h:38:7: note: constexpr ESP8266::ESP8266(const ESP8266&)

class ESP8266 {

   ^

C:\Users\Oguzhan Ozdogan\Documents\Arduino\libraries\ESP8266/ESP8266.h:38:7: note: candidate expects 1 argument, 2 provided

C:\Users\Oguzhan Ozdogan\Documents\Arduino\libraries\ESP8266/ESP8266.h:38:7: note: constexpr ESP8266::ESP8266(ESP8266&&)

C:\Users\Oguzhan Ozdogan\Documents\Arduino\libraries\ESP8266/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.

Hi andresarmento, I am trying your lamp Modbus IP ESP8266 AT. I get this error. Can you help me?