I’ve bought a pair of expLoRaBLE modules to send temperature data about 500m. I have successfully tested the LoRa radios over this distance by using the expLoRaBLE hookup Guide’s peer to peer example code on the sending and receiving modules respectively.
Then I tried to some simple example code (https://github.com/milesburton/Arduino- … Simple.ino) to read the DS18B20 digital temperature sensor. AS a newbie, I am stumped by the following long error message below.
I would be grateful if somebody could help me read the DS18B20 data so the expLoRaBLE can send it to my receiving module.
In file included from C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:144:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:416:2: warning: #warning “OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture.” [-Wcpp]
#warning “OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture.”
^~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘uint8_t OneWire::reset()’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:171:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:171:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:173:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:173:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::write_bit(uint8_t)’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:204:3: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:204:3: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:209:3: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:209:3: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:212:3: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:212:3: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:217:3: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:217:3: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘uint8_t OneWire::read_bit()’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:232:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:232:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:239:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:239:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::write(uint8_t, uint8_t)’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:258:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:258:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:261:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:261:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::write_bytes(const uint8_t*, uint16_t, bool)’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:269:5: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:269:5: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:272:5: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:272:5: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::depower()’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:316:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:316:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:318:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:318:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
exit status 1
Error compiling for board LoRa Thing Plus expLoRaBLE.
In file included from C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:144:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:416:2: warning: #warning “OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture.” [-Wcpp]
#warning “OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture.”
^~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘uint8_t OneWire::reset()’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:171:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:171:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:173:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:173:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::write_bit(uint8_t)’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:204:3: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:204:3: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:209:3: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:209:3: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:212:3: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:212:3: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:217:3: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:217:3: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘uint8_t OneWire::read_bit()’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:232:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:232:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:239:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:239:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::write(uint8_t, uint8_t)’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:258:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:258:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:261:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:261:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::write_bytes(const uint8_t*, uint16_t, bool)’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:269:5: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:269:5: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:272:5: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:272:5: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp: In member function ‘void OneWire::depower()’:
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:316:2: error: ‘noInterrupts’ was not declared in this scope
noInterrupts();
^~~~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:316:2: note: suggested alternative: ‘detachInterrupt’
noInterrupts();
^~~~~~~~~~~~
detachInterrupt
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:318:2: error: ‘interrupts’ was not declared in this scope
interrupts();
^~~~~~~~~~
C:\Users\Ric Dell\Documents\Arduino\libraries\OneWire\OneWire.cpp:318:2: note: suggested alternative: ‘intptr_t’
interrupts();
^~~~~~~~~~
intptr_t
exit status 1
Error compiling for board LoRa Thing Plus expLoRaBLE.