I'm still evaluating the plugin and came across the ESP32 units which can handle more than one analogue input. I've loaded the board manager and libraries and managed to change the majority of the code to work with the ESP32 board but I've hit the buffers trying to work out how to get a version to compile if I don't comment out the OTA section.
The changes below address the differences with the changed libraries
The main problem I have is that the void InstallUpdates() section generates a compile error as the change from ESPhttpUpdate.update to httpUpdate.update generates the error below.
I'm not a C++ coder so at the moment it's trial and error unfortunately. Any assistance would be appreciated as once I can get past this issue I should be able to do what I need to do repurposing some code from a post in the HS3 plugin forum to get a multiple one wire and DHT11 environment working.
I've also now got an ADS1115 4 channel ADC which I may be able to use with the NodeMCU unit as a fall back but it looks like the ESP32 could be a one board solution if it can work with the plugin.
Any help would be appreciated.
Dave
The changes below address the differences with the changed libraries
Code:
//************Do not change anything after Here***************** #define ISIP 1 #define BoardType 3 const byte BoardAdd = 2; unsigned long LastAlive = 0; #if BoardType == 3 || BoardType == 5 // #include <ESP8266WiFi.h> #include <WiFi.h> // changes required for ESP32 #define UDP_TX_PACKET_MAX_SIZE 24 // changes required for ESP32 #include <WiFiUdp.h> // #include <ESP8266mDNS.h> #include <ESPmDNS.h> // changes required for ESP32 #include <ArduinoOTA.h> // #include <ESP8266HTTPClient.h> // #include <ESP8266httpUpdate.h> #include <HTTPClient.h> // changes required for ESP32 #include <HTTPUpdate.h> // changes required for ESP32
I'm not a C++ coder so at the moment it's trial and error unfortunately. Any assistance would be appreciated as once I can get past this issue I should be able to do what I need to do repurposing some code from a post in the HS3 plugin forum to get a multiple one wire and DHT11 environment working.
I've also now got an ADS1115 4 channel ADC which I may be able to use with the NodeMCU unit as a fall back but it looks like the ESP32 could be a one board solution if it can work with the plugin.
Any help would be appreciated.
Dave
Code:
C:\Users\david\AppData\Local\Temp\APIBoard2temp\APIBoard2tem p.ino: In function 'void InstallUpdates()': APIBoard2temp:539:62: error: no matching function for call to 'HTTPUpdate::update(char*&)' t_httpUpdate_return ret = httpUpdate.update(fwImageURL); // changes required for ESP32 ^ In file included from C:\Users\david\AppData\Local\Temp\APIBoard2temp\APIBoard2tem p.ino:141:0: C:\Users\david\AppData\Local\Arduino15\packages\esp32\hardwa re\esp32\1.0.4\libraries\HTTPUpdate\src/HTTPUpdate.h:73:25: note: candidate: t_httpUpdate_return HTTPUpdate::update(WiFiClient&, const String&, const String&) t_httpUpdate_return update(WiFiClient& client, const String& url, const String& currentVersion = ""); ^ C:\Users\david\AppData\Local\Arduino15\packages\esp32\hardwa re\esp32\1.0.4\libraries\HTTPUpdate\src/HTTPUpdate.h:73:25: note: candidate expects 3 arguments, 1 provided C:\Users\david\AppData\Local\Arduino15\packages\esp32\hardwa re\esp32\1.0.4\libraries\HTTPUpdate\src/HTTPUpdate.h:75:25: note: candidate: t_httpUpdate_return HTTPUpdate::update(WiFiClient&, const String&, uint16_t, const String&, const String&) t_httpUpdate_return update(WiFiClient& client, const String& host, uint16_t port, const String& uri = "/", ^ C:\Users\david\AppData\Local\Arduino15\packages\esp32\hardwa re\esp32\1.0.4\libraries\HTTPUpdate\src/HTTPUpdate.h:75:25: note: candidate expects 5 arguments, 1 provided Multiple libraries were found for "WiFi.h" Used: C:\Users\david\AppData\Local\Arduino15\packages\esp32\hardwa re\esp32\1.0.4\libraries\WiFi Not used: C:\Program Files (x86)\Arduino\libraries\WiFi exit status 1 no matching function for call to 'HTTPUpdate::update(char*&)'
Comment