B4R Question Wemos D1 mini and DHT11

Roger C

Active Member
Licensed User
Hi all,

I'm trying to get these two working together but they won't.

Does anyone have a WORKING library for B4R with DHT11 and D1 mini?
I've tried at least 6 different libraries found in the forum.
5 of them won't compile, upload or run depending on different errors (some of them gave 200 lines of error in the logger). Some of them had problems with dht.h...

Finally I found one zipped project with a working library that somebody shared. Don't know where, can't find it again amongst my 300 open pages in Firefox. File supplied if someone wants it. It's not my project so I won't take credit for it.

This project compiles, uploads and runs without problem. Finally after 2 days wasted...
BUT the result is only zeros 0000

The sensor only gives a value of 0. Or rather the sensor is working but the B4R program is not.

I have a setup with D1 mini and DHT11 connected to D5. Exactly the same for both programs below, haven't touched it.

Below is the code from Ardunio IDE that works like a charm. It is based on the DHTesp.h wich seems to be the only working library for D1, I've seen it in many posts at Arduino. Here is more info. I've tried other DHT.h for Arduino IDE that comes with the program but they aren't working perfectly.

B4X:
#include "DHTesp.h"

DHTesp dht;

void setup() {
    Serial.begin(115200);
    dht.setup(D5, DHTesp::DHT11);
    
}

void loop() {
    float h = dht.getHumidity();
    float t = dht.getTemperature();
 
    Serial.print("{\"humidity\": ");
    Serial.print(h);
    Serial.print(", \"temp\": ");
    Serial.print(t);
    Serial.print("}\n");

    delay(2000);
}
Above code gives these readings
B4X:
{"humidity": 29.00, "temp": 25.00}
{"humidity": 29.00, "temp": 25.00}
{"humidity": 29.00, "temp": 25.00}
{"humidity": 29.00, "temp": 25.00}
{"humidity": 29.00, "temp": 25.00}
{"humidity": 29.00, "temp": 25.00}
{"humidity": 44.00, "temp": 25.00}
{"humidity": 55.00, "temp": 26.00}
{"humidity": 63.00, "temp": 26.00}
{"humidity": 68.00, "temp": 26.00}
{"humidity": 72.00, "temp": 26.00}
{"humidity": 75.00, "temp": 26.00}
{"humidity": 74.00, "temp": 27.00}
{"humidity": 65.00, "temp": 27.00}
{"humidity": 58.00, "temp": 27.00}
{"humidity": 52.00, "temp": 27.00}
And below is the code for B4R. Working in the sense that it compiles but only gives 0.
This code together with the library in supplied zip is the only working combination I've found.
B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public Serial1 As Serial
    Public DHT11sensor As dht                'DHT11 sensor
    Public Timer1 As Timer                    'Timer for reading DHT11 measures at desired interval
    Public DHT11pin As Pin                    'Arduino Pin connected to DHT11 signal
    Public Interval As Int                    'Interval as seconds
 
    Dim humidity,temperature As Double        'Humidity/Temperature DHT11 readings
 
End Sub

Private Sub AppStart
 
    Serial1.Initialize(115200)
    Log("AppStart")
 
    Interval=5                                        '5 sec Timer Interval                                 
    DHT11pin.Initialize(5,DHT11pin.MODE_INPUT)        'Initialize at Arduino Pin 4
    Timer1.Initialize("Timer1_Tick",Interval*1000)         
    Timer1.Enabled=True                                'Begin Timer
 End Sub


Sub Timer1_Tick
 
    DHT11sensor.Read11(DHT11pin.PinNumber)            'Reading the DHT11 measure
    humidity=DHT11sensor.GetHumidity                'Get humidity from readed measure
    temperature=DHT11sensor.GetTemperature            'Get temperature from readed measure
    Log("Humidity = ",humidity, " %", "  Temperature =",temperature, " Cº")
 
End Sub
Above code gives this result:
B4X:
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
Humidity = 0 %  Temperature =0 Cº
 

Attachments

Roger C

Active Member
Licensed User
No. Complains about missing Adafruit_Sensor.h
Tried to search for that but don't know what to do with it if I find it...


B4X:
Laddar konfiguration...
Initialiserar paket...
Preparing boards...
Verifierar...
C:\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Arduino\hardware -hardware C:\Users\rvall\AppData\Local\Arduino15\packages -tools C:\Arduino\tools-builder -tools C:\Arduino\hardware\tools\avr -tools C:\Users\rvall\AppData\Local\Arduino15\packages -built-in-libraries C:\Arduino\libraries -libraries C:\Users\rvall\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:xtal=80,vt=flash,exception=disabled,eesz=4M,ip=lm2f,dbg=Serial,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -warnings=none -build-cache C:\Users\rvall\AppData\Local\Temp\arduino_cache_743601 -prefs=build.path=C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool-2.5.0-3-20ed2b9.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -verbose C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\src\src.ino
C:\Arduino\arduino-builder -compile -logger=machine -hardware C:\Arduino\hardware -hardware C:\Users\rvall\AppData\Local\Arduino15\packages -tools C:\Arduino\tools-builder -tools C:\Arduino\hardware\tools\avr -tools C:\Users\rvall\AppData\Local\Arduino15\packages -built-in-libraries C:\Arduino\libraries -libraries C:\Users\rvall\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:xtal=80,vt=flash,exception=disabled,eesz=4M,ip=lm2f,dbg=Serial,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -warnings=none -build-cache C:\Users\rvall\AppData\Local\Temp\arduino_cache_743601 -prefs=build.path=C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool-2.5.0-3-20ed2b9.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -verbose C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\src\src.ino
Using board 'd1_mini' from platform in folder: C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0
Using core 'esp8266' from platform in folder: C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0
Build options changed, rebuilding all
Detecting libraries used...
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\Adafruit_GFX.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\Adafruit_SSD1306.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\Wire" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\Adafruit_SSD1306.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\Wire" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\B4RArduino.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\Wire" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\B4RCore.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\Wire" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\B4RStream.cpp" -o nul
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DDEBUG_ESP_PORT=Serial -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\d1_mini" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\SPI" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\libraries\\Wire" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\DHT_U.cpp" -o nul
In file included from C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp:22:0:
DHT_U.h:25:29: error: Adafruit_Sensor.h: No such file or directory
 #include <Adafruit_Sensor.h>
                             ^
compilation terminated.
Using library SPI at version 1.0 in folder: C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\SPI
Using library Wire at version 1.0 in folder: C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\Wire
exit status 1
 

Roger C

Active Member
Licensed User
Thanks. Tried that now. Came up with the error in bottom...

1. Changed to 2.4.2. How do I know not to use the latest version? 2.5.0 is the last stable version (after three BETA) according to the Board-list.

2. Searched for Adafruit_Sensor in IDE's Library manager, got 45 hits... Took one that ended on Master. Did contain Adafruit_Sensor.h at least. Don't know if that is wrong version.
Why do I need that, It's not needed in Arduino IDE? Ok B4R asks for it but still, there's a library for DHT only that I'm using.

And yes, there are both Adafruit_Sensor library and DHT library used in the last rows in the error code. But I don't know how to remove the DHT and that is also the only library that works in Arduino IDE so I don't wan't to remove libraries.

Im feeling a bit bothered that I got Arduino IDE in C++ working with D1 mini after ten minutes. But B4R and D1 mini, I've spent 4 days and still not working.
What am I doing wrong??? It can't be this hard to make it work.

B4X:
Laddar konfiguration...
Initialiserar paket...
Preparing boards...
Verifierar...
C:\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Arduino\hardware -hardware C:\Users\rvall\AppData\Local\Arduino15\packages -tools C:\Arduino\tools-builder -tools C:\Arduino\hardware\tools\avr -tools C:\Users\rvall\AppData\Local\Arduino15\packages -built-in-libraries C:\Arduino\libraries -libraries C:\Users\rvall\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,VTable=flash,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -warnings=none -build-cache C:\Users\rvall\AppData\Local\Temp\arduino_cache_68945 -prefs=build.path=C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.esptool-0.4.13.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.mkspiffs-0.2.0.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -verbose C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\src\src.ino
C:\Arduino\arduino-builder -compile -logger=machine -hardware C:\Arduino\hardware -hardware C:\Users\rvall\AppData\Local\Arduino15\packages -tools C:\Arduino\tools-builder -tools C:\Arduino\hardware\tools\avr -tools C:\Users\rvall\AppData\Local\Arduino15\packages -built-in-libraries C:\Arduino\libraries -libraries C:\Users\rvall\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1_mini:CpuFrequency=80,VTable=flash,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -warnings=none -build-cache C:\Users\rvall\AppData\Local\Temp\arduino_cache_68945 -prefs=build.path=C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.esptool-0.4.13.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.mkspiffs-0.2.0.path=C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -verbose C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\src\src.ino
Using board 'd1_mini' from platform in folder: C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2
Using core 'esp8266' from platform in folder: C:\Users\rvall\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2
Detecting libraries used...
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\\variants\\d1_mini" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\B4RArduino.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\B4RCore.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\B4RStream.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\Scheduler.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\b4r_main.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\dht.cpp
Using cached library dependencies for file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\rDHT.cpp
Using cached library dependencies for file: C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library\DHT.cpp
Using cached library dependencies for file: C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp
Generating function prototypes...
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\\variants\\d1_mini" "-IC:\\Users\\rvall\\Documents\\Arduino\\libraries\\Adafruit_Sensor-master" "-IC:\\Users\\rvall\\Documents\\Arduino\\libraries\\DHT_sensor_library" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp" -o "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Kompilerar skiss...
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\Scheduler.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\b4r_main.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\B4RArduino.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\dht.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\B4RStream.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\B4RCore.cpp.o
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/lwip2/include" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\\cores\\esp8266" "-IC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\\variants\\d1_mini" "-IC:\\Users\\rvall\\Documents\\Arduino\\libraries\\Adafruit_Sensor-master" "-IC:\\Users\\rvall\\Documents\\Arduino\\libraries\\DHT_sensor_library" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp" -o "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp.o"
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\rDHT.cpp.o
Compiling libraries...
Compiling library "Adafruit_Sensor-master"
Compiling library "DHT_sensor_library"
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o
Compiling core...
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\cont.S.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_flash_utils.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_noniso.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_phy.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\libc_replacements.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_wiring.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_eboot_command.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\cont_util.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_si2c.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_wiring_digital.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_sigma_delta.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\time.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_timer.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_wiring_pulse.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\uart.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\gdb_hooks.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\libb64\cdecode.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_wiring_pwm.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\libb64\cencode.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\spiffs\spiffs_cache.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_waveform.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_wiring_shift.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_postmortem.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\spiffs\spiffs_check.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\heap.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\sntp-lwip2.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\spiffs\spiffs_hydrogen.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_i2s.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\core_esp8266_wiring_analog.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\spiffs\spiffs_gc.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\spiffs\spiffs_nucleus.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\umm_malloc\umm_malloc.c.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\MD5Builder.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\Print.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\Esp.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\Schedule.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\abi.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\Esp-version.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\base64.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\Stream.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\ScheduledFunctions.cpp.o
Using previously compiled file: C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\core\cbuf.cpp.o
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\FS.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\FS.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\FunctionalInterrupt.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\HardwareSerial.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\IPAddress.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\MD5Builder.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\Print.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\Schedule.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\ScheduledFunctions.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\Stream.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\StreamString.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\Tone.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\Updater.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\WMath.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\WString.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\abi.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\base64.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\cbuf.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\cont.S.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\cont_util.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_eboot_command.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_flash_utils.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_i2s.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_main.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_noniso.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_phy.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_postmortem.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_si2c.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_sigma_delta.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_timer.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_wiring.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_wiring.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_wiring_pulse.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\core_esp8266_wiring_pulse.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\debug.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\debug.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\gdb_hooks.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\heap.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\libb64\\cdecode.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\libb64\\cencode.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\libc_replacements.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\pgmspace.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\sntp-lwip2.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs\\spiffs_cache.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs\\spiffs_check.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs\\spiffs_gc.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs\\spiffs_hydrogen.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs\\spiffs_nucleus.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs_api.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\spiffs_hal.cpp.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\time.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\uart.c.o"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar" cru "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\core\\umm_malloc\\umm_malloc.c.o"
Unable to cache built core, please tell esp8266 maintainers to follow http://goo.gl/QdCUjo
Linking everything together...
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc" -CC -E -P -DVTABLES_IN_FLASH "C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/ld/eagle.app.v6.common.ld.h" -o "C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/ld/eagle.app.v6.common.ld"
"C:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc" -Wl,-Map "-Wl,C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/src.ino.map" -g -w -Os -nostdlib -Wl,--no-check-sections -u app_entry -u _printf_float -u _scanf_float -Wl,-static "-LC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/lib" "-LC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/ld" "-LC:\\Users\\rvall\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2/tools/sdk/libc/xtensa-lx106-elf/lib" -Teagle.flash.4m1m.ld -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -o "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/src.ino.elf" -Wl,--start-group "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\B4RArduino.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\B4RCore.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\B4RStream.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\DHT_U.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\Scheduler.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\b4r_main.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\dht.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\rDHT.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\sketch\\src.ino.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\libraries\\DHT_sensor_library\\DHT.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin\\libraries\\DHT_sensor_library\\DHT_U.cpp.o" "C:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin/arduino.ar" -lhal -lphy -lpp -lnet80211 -llwip2 -lwpa -lcrypto -lmain -lwps -lbearssl -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group "-LC:\\Users\\rvall\\DOWNLO~1\\B4RHOW~2\\Objects\\bin"
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Temperature::getEvent(sensors_event_t*)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:84: multiple definition of `DHT_Unified::Temperature::getEvent(sensors_event_t*)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:84: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Humidity::getEvent(sensors_event_t*)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:143: multiple definition of `DHT_Unified::Humidity::getEvent(sensors_event_t*)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:143: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::DHT_Unified(unsigned char, unsigned char, unsigned char, int, int)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:24: multiple definition of `DHT_Unified::DHT_Unified(unsigned char, unsigned char, unsigned char, int, int)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:24: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::DHT_Unified(unsigned char, unsigned char, unsigned char, int, int)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:24: multiple definition of `DHT_Unified::DHT_Unified(unsigned char, unsigned char, unsigned char, int, int)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:24: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::begin()':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:31: multiple definition of `DHT_Unified::begin()'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:31: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::setName(sensor_t*)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:35: multiple definition of `DHT_Unified::setName(sensor_t*)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:35: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::setMinDelay(sensor_t*)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:59: multiple definition of `DHT_Unified::setMinDelay(sensor_t*)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:59: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Temperature::getSensor(sensor_t*)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:97: multiple definition of `DHT_Unified::Temperature::getSensor(sensor_t*)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:97: first defined here
Multiple libraries were found for "DHT.h"
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Humidity::getSensor(sensor_t*)':
 Använd: C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library
Oanvänd: C:\Users\rvall\Documents\Arduino\libraries\DHT-sensor-library-master
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:156: multiple definition of `DHT_Unified::Humidity::getSensor(sensor_t*)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:156: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Temperature::Temperature(DHT_Unified*, int)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:81: multiple definition of `DHT_Unified::Temperature::Temperature(DHT_Unified*, int)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:81: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Temperature::Temperature(DHT_Unified*, int)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:81: multiple definition of `DHT_Unified::Temperature::Temperature(DHT_Unified*, int)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:81: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Humidity::Humidity(DHT_Unified*, int)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:140: multiple definition of `DHT_Unified::Humidity::Humidity(DHT_Unified*, int)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:140: first defined here
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\libraries\DHT_sensor_library\DHT_U.cpp.o: In function `DHT_Unified::Humidity::Humidity(DHT_Unified*, int)':
C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.cpp:140: multiple definition of `DHT_Unified::Humidity::Humidity(DHT_Unified*, int)'
C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch\DHT_U.cpp.o:C:\Users\rvall\DOWNLO~1\B4RHOW~2\Objects\bin\sketch/DHT_U.cpp:140: first defined here
collect2.exe: error: ld returned 1 exit status
Using library Adafruit_Sensor-master at version 1.0.3 in folder: C:\Users\rvall\Documents\Arduino\libraries\Adafruit_Sensor-master
Using library DHT_sensor_library at version 1.3.3 in folder: C:\Users\rvall\Documents\Arduino\libraries\DHT_sensor_library
exit status 1
 

Erel

Administrator
Staff member
Licensed User
The required ESP8266 version is listed here: https://www.b4x.com/android/forum/threads/esp8266-getting-started.68740/#content

Remember that rDHT library is not an official library. I didn't write it. If it was an official library it would have been easier for me to help you here.

I think that you did something wrong. I don't see any file named DHT_U.cpp here. The library I posted doesn't depend on such file and as far as I see doesn't depend on Adafruit_Sensor.

Delete rDHT library and download it again.
 

Roger C

Active Member
Licensed User
Ahhh. Sorry, missed the version.
I know that it's not your lib and you can't do much about it and I'm greatful for your time. :)

In all examples you use a board WeMos D1 R2 & mini. I don't have that boardname. I use LOLIN(WEMOS) D1 R2 & mini. See supplied pic.
Are they the same board or?

Deleted everything (inculding B4R and Arduino), reinstalled everything. Now I tried again with the link you gave in post #2 above.
That library compiles but still only gives 0 as output.
(And I have tried again with C++ code in Arduino IDE and library DHTesp.h. Then it works so it's not a hardware error.)

I give up this problem, there is no working library for B4R.
I will try inline C++ instead, that worked in C++ at least.
---------------------------------------------------------------

Below code with inline C++ works perfectly.
Just a question; in Basic I initialize pin 5 as input. Do I need that when I use
B4X:
dht.setup(D5, DHTesp::DHT11);
in C++ code?

B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public Serial1 As Serial
    Public Timer1 As Timer                    'Timer for reading DHT11 measures at desired interval
    Public DHT11pin As Pin                    'Arduino Pin connected to DHT11 signal
    Public Interval As Int                    'Interval as seconds
 
    Dim hum,temp As Double        'Humidity/Temperature DHT11 readings
 
End Sub

Private Sub AppStart
      Serial1.Initialize(115200)
    Log("AppStart")
    Interval=5                                        '5 sec Timer Interval                                
    DHT11pin.Initialize(5,DHT11pin.MODE_INPUT)        'Initialize at D1 mini Pin 5
    Timer1.Initialize("Timer1_Tick",Interval*1000)        
    Timer1.Enabled=True                                'Begin Timer
 End Sub


Sub Timer1_Tick
     RunNative("ReadTemp", Null)
    Log("Humidity = ",hum, " %", "  Temperature =",temp, " Cº")
End Sub


#if C
#include "DHTesp.h"
DHTesp dht;
void ReadTemp (B4R::Object* o) {
    dht.setup(D5, DHTesp::DHT11);
    b4r_main::_hum = dht.getHumidity();
    b4r_main::_temp = dht.getTemperature();
     }
#End If
Above code in B4R resulted in readings of both humidity and temperature.

B4X:
Humidity = 18 %  Temperature =25 Cº
Humidity = 22 %  Temperature =25 Cº
Humidity = 53 %  Temperature =25 Cº
Humidity = 60 %  Temperature =25 Cº
Humidity = 67 %  Temperature =26 Cº
Humidity = 73 %  Temperature =26 Cº
Humidity = 75 %  Temperature =26 Cº
Humidity = 75 %  Temperature =27 Cº
Humidity = 73 %  Temperature =27 Cº
Humidity = 55 %  Temperature =28 Cº
 

Attachments

Top