Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Compile errors
#1

Hi, 
I downloaded your firmware for the AQMIII to start work on my current AQMIII to get it fixed for the problem I reported earlier.
I finally managed to get the correct board in place (ESP32 Dev Module) and compiled the code as is after configuration.
I get loads of errors, the short version - all library resolve seems to go OK - is below. I can post the long version as well. 

Any suggestion? (IDE version 2.3.6; and no this is not my daily doing so you  may be verbose)
Should I update the libs, if so howto without damage?

Code:
Compiling sketch... "C:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-x32\\2507/bin/xtensa-esp32-elf-g++" -MMD -c "@C:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-07e9bf49-v1\\esp32/flags/cpp_flags" -Os -Werror=return-type -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-07e9bf49-v1\\esp32/flags/defines" "-IC:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\software\\WeatherDuino_AQM_III_v6.1_b010" -iprefix "C:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-07e9bf49-v1\\esp32/include/" "@C:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-07e9bf49-v1\\esp32/flags/includes" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-07e9bf49-v1\\esp32/qio_qspi/include" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\cores\\esp32" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\variants\\esp32" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\EspSoftwareSerial\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\WiFi\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\Network\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\ESPmDNS\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\WebServer\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\FS\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\HTTPClient\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\NetworkClientSecure\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\ArduinoOTA\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\Update\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\SPI\\src" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\Wire\\src" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\RadioHead" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\esp8266-OLED-SSD1306" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\Timer" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\BME280-3.0.0\\src" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\ArduinoJson\\src" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\SPS30-master" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\SparkFun_SCD30_Arduino_Library\\src" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\ThingSpeak\\src" "-Ic:\\Users\\hansr\\Documents\\Arduino\\WeatherDuino_AQM_III\\libraries\\RunningAverage" "-IC:\\Users\\hansr\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.2\\libraries\\Hash\\src" "@C:\\Users\\hansr\\AppData\\Local\\arduino\\sketches\\4180D39E9A8D0EE7A69B2AE0F3C4DF00/build_opt.h" "@C:\\Users\\hansr\\AppData\\Local\\arduino\\sketches\\4180D39E9A8D0EE7A69B2AE0F3C4DF00/file_opts" "C:\\Users\\hansr\\AppData\\Local\\arduino\\sketches\\4180D39E9A8D0EE7A69B2AE0F3C4DF00\\sketch\\WeatherDuino_AQM_III_v6.1_b010.ino.cpp" -o "C:\\Users\\hansr\\AppData\\Local\\arduino\\sketches\\4180D39E9A8D0EE7A69B2AE0F3C4DF00\\sketch\\WeatherDuino_AQM_III_v6.1_b010.ino.cpp.o" In file included from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\esp8266-OLED-SSD1306/SH1106Wire.h:31,                  from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\esp8266-OLED-SSD1306/SH1106.h:30,                  from C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\WeatherDuino_AQM_III_v6.1_b010.ino:57: c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\esp8266-OLED-SSD1306/OLEDDisplay.h: In member function 'virtual bool OLEDDisplay::connect()': c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\esp8266-OLED-SSD1306/OLEDDisplay.h:253:29: error: no return statement in function returning non-void [-Werror=return-type]   253 |     virtual bool connect() {};       |                             ^ C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino: In function 'void send_PMaverages()': C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino:146:34: warning: 'DynamicJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations]   146 |     DynamicJsonDocument AQ_sensor(420);       |                                  ^ In file included from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson.hpp:65,                  from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson.h:9,                  from C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\WeatherDuino_AQM_III_v6.1_b010.ino:61: c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/compatibility.hpp:125:58: note: declared here   125 | class ARDUINOJSON_DEPRECATED("use JsonDocument instead") DynamicJsonDocument       |                                                          ^~~~~~~~~~~~~~~~~~~ C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino: In function 'void send_PMdata()': C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino:178:32: warning: 'DynamicJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations]   178 |     DynamicJsonDocument AQMData(280);       |                                ^ c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/compatibility.hpp:125:58: note: declared here   125 | class ARDUINOJSON_DEPRECATED("use JsonDocument instead") DynamicJsonDocument       |                                                          ^~~~~~~~~~~~~~~~~~~ C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino: In function 'void send_AirLink()': C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino:207:5: warning: 'template<unsigned int N> class ArduinoJson::V742PB22::StaticJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations]   207 |     StaticJsonDocument<800> airlink;       |     ^~~~~~~~~~~~~~~~~~ c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/compatibility.hpp:63:58: note: declared here    63 | class ARDUINOJSON_DEPRECATED("use JsonDocument instead") StaticJsonDocument       |                                                          ^~~~~~~~~~~~~~~~~~ C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino:210:49: warning: 'ArduinoJson::V742PB22::JsonObject ArduinoJson::V742PB22::JsonDocument::createNestedObject(TChar*) [with TChar = const char]' is deprecated: use doc[key].to<JsonObject>() instead [-Wdeprecated-declarations]   210 |     JsonObject data = airlink.createNestedObject("data");       |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ In file included from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson.hpp:42: c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/Document/JsonDocument.hpp:376:14: note: declared here   376 |   JsonObject createNestedObject(TChar* key) {       |              ^~~~~~~~~~~~~~~~~~ C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\NET.ino:215:73: warning: 'ArduinoJson::V742PB22::JsonObject ArduinoJson::V742PB22::detail::VariantRefBase<TDerived>::createNestedObject() const [with TDerived = ArduinoJson::V742PB22::detail::MemberProxy<ArduinoJson::V742PB22::JsonObject, ArduinoJson::V742PB22::detail::RamString>]' is deprecated: use add<JsonObject>() instead [-Wdeprecated-declarations]   215 |     JsonObject data_conditions_0 = data["conditions"].createNestedObject();       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/Array/ElementProxy.hpp:7,                  from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/Array/JsonArray.hpp:7,                  from c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson.hpp:38: c:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:233:14: note: declared here   233 |   JsonObject createNestedObject() const;       |              ^~~~~~~~~~~~~~~~~~ cc1plus.exe: some warnings being treated as errors Using library EspSoftwareSerial at version 8.1.0 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\EspSoftwareSerial Using library WiFi at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\WiFi Using library Networking at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\Network Using library ESPmDNS at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\ESPmDNS Using library WebServer at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\WebServer Using library FS at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\FS Using library HTTPClient at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\HTTPClient Using library NetworkClientSecure at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\NetworkClientSecure Using library ArduinoOTA at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\ArduinoOTA Using library Update at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\Update Using library SPI at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\SPI Using library Wire at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\Wire Using library RadioHead at version 1.143.1 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\RadioHead Using library ESP8266 and ESP32 Oled Driver for SSD1306 display at version 3.2.7 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\esp8266-OLED-SSD1306 Using library Timer in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\Timer (legacy) Using library BME280 at version 3.0.0 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\BME280-3.0.0 Using library ArduinoJson at version 7.4.2 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson Using library sensirion-sps at version 1.0.0 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\SPS30-master Using library SparkFun SCD30 Arduino Library at version 1.0.20 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\SparkFun_SCD30_Arduino_Library Using library ThingSpeak at version 2.1.1 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ThingSpeak Using library RunningAverage at version 0.4.8 in folder: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\RunningAverage Using library Hash at version 3.3.2 in folder: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.2\libraries\Hash exit status 1 Compilation error: exit status 1

HansR
Reply
#2

(31-10-2025, 13:04)HansR Wrote:  ...

I get loads of errors, the short version - all library resolve seems to go OK - is below. I can post the long version as well. 

Any suggestion? (IDE version 2.3.6; and no this is not my daily doing so you  may be verbose)
Should I update the libs, if so howto without damage?

Hi HansR

Fisrt of all try with IDE ESP32 2.0.3, as said it may not compile with newer versions.

Rgs.
Werk_AG
Reply
#3

Quote:werk_ag

Fisrt of all try with IDE ESP32 2.0.3, as said it may not compile with newer versions.


I installed Board v2.0.3 and reinstalled the code from the zip (effectively removing the library updates)
The setup of the EDE shows as follows:

   

I Compiled and had the errors as in the txtfile in zip.

Regards,
Hans


Attached Files
.zip errors Arduino IDE 2-11-25.zip Size: 17,31 KB  Downloads: 4

HansR
Reply
#4

Hi HansR

From the errors below it seems Arduino IDE isn't using the provided libraries

Code:
Multiple libraries were found for "SoftwareSerial.h"   Used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\EspSoftwareSerial   Not used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\EspSoftwareSerial-6.7.1 Multiple libraries were found for "SparkFun_SCD30_Arduino_Library.h"   Used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\SparkFun_SCD30_Arduino_Library   Not used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\SparkFun_SCD30_1.0.12 Multiple libraries were found for "ArduinoJson.h"   Used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson   Not used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ArduinoJson-6.x Multiple libraries were found for "RH_RF95.h"   Used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\RadioHead   Not used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\RadioHead_v1.121 Multiple libraries were found for "ThingSpeak.h"   Used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\ThingSpeak   Not used: C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\libraries\thingspeak-arduino-master


Ussually all Arduino libraries should be placed under this folder:

Code:
C:\Users\hansr\Documents\Arduino\libraries\

The code (without the libraries) can be placed anywhere, ex:

Code:
C:\Users\hansr\Documents\WeatherDuino_AQMIII


Errors show on the image bellow aren't significant, and the code compiles fine.

   


Rgs,
Werk_AG
Reply
#5

(02-11-2025, 21:10)werk_ag Wrote:  Hi HansR

From the errors below it seems Arduino IDE isn't using the provided libraries

Code:
[...]

Ussually all Arduino libraries should be placed under this folder:

Code:
C:\Users\hansr\Documents\Arduino\libraries\

The code (without the libraries) can be placed anywhere, ex:

Code:
C:\Users\hansr\Documents\WeatherDuino_AQMIII

Two things: 
1) You use IDE 1.8.19 I use 2.3.6
2) No matter where I put the libs, I don't get it compiled correctly

When the libraries are placed here C:\Users\hansr\Documents\Arduino\libraries and the software here C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software it definitely does  not work at all (no libs are found)

When software and libraries are on the same level (so, just as extracted from the rar archive, C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III) it does compile but with errors.

Maybe I should use IDE 1.8.19 but a readme really would be useful)
I'll muddle along no solution yet.

Regards,

HansR
Reply
#6

I just installed 1.8.19 (from here)

Unzipped your archive in C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III => does not compile, it does not find any library

Moved libraries to C:\Users\hansr\Documents\Arduino\libraries. Then it compiles (note: this is very different from version IDE 2.3.6 where it seems to require the llibraries to be in the Sketch directory))

Then is does start compilation (after configuration) but I get the following errors:

Code:
In file included from C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306/SH1106Wire.h:31,                  from C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306/SH1106.h:30,                  from C:\Users\hansr\Documents\Arduino\WeatherDuino_AQM_III\software\WeatherDuino_AQM_III_v6.1_b010\WeatherDuino_AQM_III_v6.1_b010.ino:57: C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306/OLEDDisplay.h: In member function 'virtual bool OLEDDisplay::connect()': C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306/OLEDDisplay.h:253:29: warning: no return statement in function returning non-void [-Wreturn-type]      virtual bool connect() {};                              ^ In file included from C:\Users\hansr\Documents\Arduino\libraries\RadioHead_v1.121\RH_LoRaFileOps.cpp:5: C:\Users\hansr\Documents\Arduino\libraries\RadioHead_v1.121/RH_LoRaFileOps.h:27:2: warning: #warning RH_LoRaFileOps unfinished [-Wcpp] #warning RH_LoRaFileOps unfinished   ^~~~~~~ In file included from C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplayUi.h:31,                  from C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplayUi.cpp:27: C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplay.h: In member function 'virtual bool OLEDDisplay::connect()': C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplay.h:253:29: warning: no return statement in function returning non-void [-Wreturn-type]      virtual bool connect() {};                              ^ In file included from C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplay.cpp:28: C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplay.h: In member function 'virtual bool OLEDDisplay::connect()': C:\Users\hansr\Documents\Arduino\libraries\esp8266-OLED-SSD1306\OLEDDisplay.h:253:29: warning: no return statement in function returning non-void [-Wreturn-type]      virtual bool connect() {};                              ^ C:\Users\hansr\Documents\Arduino\libraries\SPS30-master\sensirion_hw_i2c_implementation.cpp: In function 'int8_t sensirion_i2c_read(uint8_t, uint8_t*, uint16_t)': C:\Users\hansr\Documents\Arduino\libraries\SPS30-master\sensirion_hw_i2c_implementation.cpp:98:36: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:      Wire.requestFrom(address, count);                                     ^ In file included from C:\Users\hansr\Documents\Arduino\libraries\SPS30-master\sensirion_hw_i2c_implementation.cpp:78: C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\Wire\src/Wire.h:104:13: note: candidate 1: 'uint8_t TwoWire::requestFrom(int, int)'      uint8_t requestFrom(int address, int size);              ^~~~~~~~~~~ C:\Users\hansr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\Wire\src/Wire.h:102:13: note: candidate 2: 'uint8_t TwoWire::requestFrom(uint8_t, uint8_t)'      uint8_t requestFrom(uint8_t address, uint8_t size);              ^~~~~~~~~~~ Sketch uses 806201 bytes (61%) of program storage space. Maximum is 1310720 bytes. Global variables use 44464 bytes (13%) of dynamic memory, leaving 283216 bytes for local variables. Maximum is 327680 bytes.


So it does compile - it does not give any error, only warnings which I highly dislike - but I have the following concluding remarks:

  1. I think you should have a readme, it is dissatisfactory that there is no indication of the board required, the library location and that it does not compile out of the box. Not everybody works with the IDE on a daily basis. Once per 5 years is already frequent if one only uses AQMIII.
  2. The warnings are not very comforting.
  3. I think you should do some upgrade related to the new IDE and especially pay more attention to the location of the libraries relative to the sketch root
  4. I am  not going to replace my current firmware with this compile, I'll await your solution for the NULL in the return of the AirLink simulation (see this post)

Regards,

HansR
Reply
#7

Hello HansR,


I'm glad that finally you are able to compile the code.

I understood your complains, however let me counterpoint:


Quote:1 - I think you should have a readme, it is dissatisfactory that there is no indication of the board required, the library location and that it does not compile out of the box. Not everybody works with the IDE on a daily basis. Once per 5 years is already frequent if one only uses AQMIII

For every WeatherDuino firmware version, there is a clear information about which IDE version should be used as also the boards version that should be used. For the case of the WeatherDuino AQMIIII:

Quote:WeatherDuino Air Quality Monitor III - v6.1_b010 - Release date: 2022-05-21
Tested with Arduino IDE 1.8.19 and ESP32 2.0.3 (may not compile with other versions).


-------------------------------------


Quote:2 - The warnings are not very comforting

Warnings are common when compiling Arduino code, and they are just that, if the software will compile successfully then it will work as expected.


-------------------------------------


Quote:3 - I think you should do some upgrade related to the new IDE and especially pay more attention to the location of the libraries relative to the sketch root

In the short term there are no plans to convert any of the WeatherDuino software to work with Arduino IDE 2.x.x
I think its not my responsibility teach how to use Arduino and where Arduino libraries should be installed. Please refer to this statement on the WeatherDuino Wiki:

Quote:Do I need to have Arduino programming skills?

No, there is no need to have programming skills. However its assumed that the user has a minimal knowledge of the Arduino IDE. It is necessary to know how to install libraries and how to make minor edits to code.
Editing the code is only required to change the value of some pre-defined settings, to make the software work correctly with the set of weather instruments you intend to use, and to define some user preferences, such as using metric or imperial units.

-------------------------------------

Quote:4 - I am  not going to replace my current firmware with this compile, I'll await your solution for the NULL in the return of the AirLink simulation (see this post)


In a few days I will release a new WeatherDuino AQMIII firmware version with a fix for NULL in the return of the AirLink simulation.


Thank you for your comments and concerns.

Rgs,
Werk_AG
Reply
#8

Hi wergk_ag,

Thanks for your remarks pointing out where I went wrong. 

Quote:In a few days I will release a new WeatherDuino AQMIII firmware version with a fix for NULL in the return of the AirLink simulation.

Thank you, looking forward to the solution.

Thank you for your patience.

Regards,
Hans

HansR
Reply
#9

Hello Hans,

I am the one who should be grateful for your collaboration.
My apologies for not always being able to meet user expectations.

A new firmware version was released today for the AQMIII; I hope it solves the NULL issue. Please provide feedback.

Reply
#10

(04-11-2025, 18:18)werk_ag Wrote:  Hello Hans,

I am the one who should be grateful for your collaboration.
My apologies for not always being able to meet user expectations.

A new firmware version was released today for the AQMIII; I hope it solves the NULL issue. Please provide feedback.

Hi werk_ag,

The problem is solved and AQMIII now is correctly read by CMX v4.7 (to be released later)
If any issue - it was a quick test - I will get back to you but it looks reading the data which is the result I am looking for  Like

regards,

HansR
Reply




Users browsing this thread: 1 Guest(s)