washcroft / HttpGarageDoorController

A project for an Arduino based WiFi-enabled controller, IoT/M2M enabling an ordinary garage door operator.
MIT License
11 stars 4 forks source link

Compiling Issues Arduino Library #15

Open jeylites opened 4 years ago

jeylites commented 4 years ago

@washcroft

I hope all is well during these uncharted times. I needed to change my Wemos D1 earlier today, tried to compile only to run into some errors.

It seems that there's an incompatibility issue with ArduinoJson library. So I downgraded to ver.5 which has to lead me to another problem with WifiHelper

ArduinoJson Issue

HttpGarageDoorController:146:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
   StaticJsonBuffer<200> jsonBuffer;
           ^
exit status 1
StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

Wifihelper Issue


sketch/src/WiFiHelper/WiFiHelper.cpp: In member function 'bool WiFiHelper::connect()':
sketch/src/WiFiHelper/WiFiHelper.cpp:202:23: error: ambiguous overload for 'operator!=' (operand types are 'wl_status_t' and 'const IPAddress')
     if (WiFi.status() != INADDR_NONE) {

                       ^
sketch/src/WiFiHelper/WiFiHelper.cpp:202:23: note: candidates are:
sketch/src/WiFiHelper/WiFiHelper.cpp:202:23: note: operator!=(int, uint32_t {aka unsigned int}) <built-in>
sketch/src/WiFiHelper/WiFiHelper.cpp:202:23: note: operator!=(int, u32_t {aka long unsigned int}) <built-in>
sketch/src/WiFiHelper/WiFiHelper.cpp:202:23: note: operator!=(int, int) <built-in>
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.
jeylites commented 4 years ago

@washcroft

I was able to recompile based on the following version but it would be nice to have an updated version.

WifiHelper issue was due to the ESP Board Version. Only works on 2.4.2, anything above would give an error.

ARDUINO LIBRARY

HttpGarageDoorController HTTP Controller Firmware Version 2.0.0

Arduino Library ArduinoJson Version 5.10.1 Arduino OTA Version 1.0.7 Wifi101 Version 0.11.0 Wifi 101 OTA Version 1.0.1

Board Manager ESP8266 Version 2.4.0 (Compile issue anything above 2.4.0) Arduino AVR 1.6.9 Lolin Wemos D1 Mini

Arduino Compiler Version 1.8.12 MacOsx

jeylites commented 3 years ago

Hello, Any thoughts on updating this lovely project? I still can't get it to work with my garage door. :(