Node Ds18b20 error

I have a board ttgo esp32 oled lora v2.0.

the board assigned in Arduino board => HELTEC WIFI LORA 32

I get execute code following:

But I get the error following:

Arduino:1.8.9 (Mac OS X), Tarjeta:"Heltec WiFi LoRa 32(V2), Disabled, default_8MB, 240MHz (WiFi/BT), QIO, 80MHz, 8MB (64Mb), 921600, None"

libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::reset()':
/Users/mangulo/Documents/Arduino/libraries/DallasTemperature/OneWire.cpp:163: multiple definition of `OneWire::reset()'
libraries/OneWire/OneWire.cpp.o:/Users/mangulo/Documents/Arduino/libraries/OneWire/OneWire.cpp:163: first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::write_bit(unsigned char)':
OneWire.cpp:(.text._ZN7OneWire9write_bitEh+0x0): multiple definition of `OneWire::write_bit(unsigned char)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire9write_bitEh+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::read_bit()':
OneWire.cpp:(.text._ZN7OneWire8read_bitEv+0x0): multiple definition of `OneWire::read_bit()'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire8read_bitEv+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::write(unsigned char, unsigned char)':
OneWire.cpp:(.text._ZN7OneWire5writeEhh+0x0): multiple definition of `OneWire::write(unsigned char, unsigned char)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire5writeEhh+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::write_bytes(unsigned char const*, unsigned short, bool)':
OneWire.cpp:(.text._ZN7OneWire11write_bytesEPKhtb+0x0): multiple definition of `OneWire::write_bytes(unsigned char const*, unsigned short, bool)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire11write_bytesEPKhtb+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::read()':
OneWire.cpp:(.text._ZN7OneWire4readEv+0x0): multiple definition of `OneWire::read()'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire4readEv+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::read_bytes(unsigned char*, unsigned short)':
OneWire.cpp:(.text._ZN7OneWire10read_bytesEPht+0x0): multiple definition of `OneWire::read_bytes(unsigned char*, unsigned short)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire10read_bytesEPht+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::select(unsigned char const*)':
OneWire.cpp:(.text._ZN7OneWire6selectEPKh+0x0): multiple definition of `OneWire::select(unsigned char const*)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire6selectEPKh+0x0): first defined here
Se encontraron varias bibliotecas para "OneWire.h"
Usado: /Users/mangulo/Documents/Arduino/libraries/OneWire
 No usado: /Users/mangulo/Documents/Arduino/libraries/DallasTemperature
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::skip()':
Se encontraron varias bibliotecas para "DallasTemperature.h"
Usado: /Users/mangulo/Documents/Arduino/libraries/DallasTemperature
OneWire.cpp:(.text._ZN7OneWire4skipEv+0x0): multiple definition of `OneWire::skip()'
 No usado: /Users/mangulo/Documents/Arduino/libraries/Arduino-Temperature-Control-Library-master
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire4skipEv+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::depower()':
OneWire.cpp:(.text._ZN7OneWire7depowerEv+0x0): multiple definition of `OneWire::depower()'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire7depowerEv+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::reset_search()':
OneWire.cpp:(.text._ZN7OneWire12reset_searchEv+0x0): multiple definition of `OneWire::reset_search()'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire12reset_searchEv+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::OneWire(unsigned char)':
OneWire.cpp:(.text._ZN7OneWireC2Eh+0x0): multiple definition of `OneWire::OneWire(unsigned char)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWireC2Eh+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::OneWire(unsigned char)':
OneWire.cpp:(.text._ZN7OneWireC2Eh+0x0): multiple definition of `OneWire::OneWire(unsigned char)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWireC2Eh+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::target_search(unsigned char)':
OneWire.cpp:(.text._ZN7OneWire13target_searchEh+0x0): multiple definition of `OneWire::target_search(unsigned char)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire13target_searchEh+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::search(unsigned char*, bool)':
OneWire.cpp:(.text._ZN7OneWire6searchEPhb+0x0): multiple definition of `OneWire::search(unsigned char*, bool)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire6searchEPhb+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::crc8(unsigned char const*, unsigned char)':
OneWire.cpp:(.text._ZN7OneWire4crc8EPKhh+0x0): multiple definition of `OneWire::crc8(unsigned char const*, unsigned char)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire4crc8EPKhh+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::crc16(unsigned char const*, unsigned short, unsigned short)':
OneWire.cpp:(.text._ZN7OneWire5crc16EPKhtt+0x0): multiple definition of `OneWire::crc16(unsigned char const*, unsigned short, unsigned short)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire5crc16EPKhtt+0x0): first defined here
libraries/DallasTemperature/OneWire.cpp.o: In function `OneWire::check_crc16(unsigned char const*, unsigned short, unsigned char const*, unsigned short)':
OneWire.cpp:(.text._ZN7OneWire11check_crc16EPKhtS1_t+0x0): multiple definition of `OneWire::check_crc16(unsigned char const*, unsigned short, unsigned char const*, unsigned short)'
libraries/OneWire/OneWire.cpp.o:OneWire.cpp:(.text._ZN7OneWire11check_crc16EPKhtS1_t+0x0): first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compilando para la tarjeta Heltec WiFi LoRa 32(V2).
/Users/mangulo/Desktop/DS18b20 sensor lora/lora_ds18b20/lora_ds18b20.ino

Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.

variaslibs

That code compiles OK here. Arduino IDE 1.8.5.

ok but it could be that he has some library’s more then one time (see red marker) and confusing his compiler

please keep it in one topic

I try examples dallastemperature but I get same error. I have some wire wrong sure. Thanks

you have double libraries… (se encontraron VARIAS bibliotecas)

make sure there is only one temperature library

update - user continues questions here

1 Like