merlokk / SmartHome

esp8266 IoT to mqtt bridge. Eastron SDM220, SDM230, SDM630 modbus; AZ7798; SenseAir s8; BME280; HDC1080; Plantower PMS5003, PMS7003, PMSA003
56 stars 32 forks source link

Arduino compile error #27

Closed AleGalavotti closed 5 years ago

AleGalavotti commented 6 years ago

Hello Merlokk, please forgive my bad english and my little knowledge of software. I have a pair of sdm220 and some ESP8266 I wold love to use you software that seem very professional. I downloaded all files and try to compile with arduino IDE but I receive this message ( see below), and I don't know what to to. Thank you in advance. Alessandro

C:\Users\p\Desktop\Domotica\SDM\ESP8266EASTRON\general.ino: In function 'void wifiSetup(bool)':

general:102: error: no matching function for call to 'WiFiManager::WiFiManager(xLogger&)'

WiFiManager wifiManager(DEBUG_SERIAL);

                                   ^

C:\Users\p\Desktop\Domotica\SDM\ESP8266EASTRON\general.ino:102:39: note: candidates are:

In file included from sketch\general.h:3:0,

             from C:\Users\p\Desktop\Domotica\SDM\ESP8266EASTRON\ESP8266EASTRON.ino:17
merlokk commented 6 years ago

Hi, it because I use my version of WifiManager. You can download it from my repository. I return home in several hours and send you link

merlokk commented 6 years ago

https://github.com/tzapu/WiFiManager/pull/343 or https://github.com/merlokk/WiFiManager

and maybe you need to remove this line https://github.com/merlokk/SmartHome/blob/master/lib/emodbus.h#L15

AleGalavotti commented 6 years ago

Hi Merlokk, 👍 really, thank you for your help. I'll try to include your improved version (BTW I see in the sceenshots in Gti and has a very nice GUI). Bye Alessandro