Incorrect Device EUI instruction

Get your Device EUI

"To communicate via The Things Network, you need to register your device. For this, we’ll need its unique Device EUI . This is a unique address, hard coded into the LoRa module.

  1. In the Arduino IDE, select **File > Examples > TheThingsNetwork > [DeviceInfo]"

There is NO TheThingsNetwork in Examples

Ok I found my mistake but now get this message when trying to upload:

Arduino: 1.8.9 (Mac OS X), Board: “Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)”

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/roberthancock/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega328 -vid-pid=0403_6001 -ide-version=10809 -build-path /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124 -warnings=none -build-cache /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_cache_361537 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/examples/DeviceInfo/DeviceInfo.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/roberthancock/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega328 -vid-pid=0403_6001 -ide-version=10809 -build-path /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124 -warnings=none -build-cache /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_cache_361537 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/examples/DeviceInfo/DeviceInfo.ino
Using board ‘pro’ from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core ‘arduino’ from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used…
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/sketch/DeviceInfo.ino.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/sketch/DeviceInfo.ino.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/CayenneLPP.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/TheThingsMessage.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/TheThingsNetwork.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/appData.pb.c -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/deviceData.pb.c -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/pb_common.c -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/pb_decode.c -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src/pb_encode.c -o /dev/null
Generating function prototypes…
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/sketch/DeviceInfo.ino.cpp -o /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch…
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/src /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/sketch/DeviceInfo.ino.cpp -o /var/folders/wg/cvn1t_xj5qzdjb0ktl5hfkjm0000gn/T/arduino_build_570124/sketch/DeviceInfo.ino.cpp.o
DeviceInfo:3:20: error: ‘Serial1’ was not declared in this scope
#define loraSerial Serial1
^
/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/examples/DeviceInfo/DeviceInfo.ino:9:22: note: in expansion of macro ‘loraSerial’
TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);
^
DeviceInfo:7:18: error: ‘REPLACE_ME’ was not declared in this scope
#define freqPlan REPLACE_ME
^
/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/examples/DeviceInfo/DeviceInfo.ino:9:47: note: in expansion of macro ‘freqPlan’
TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);
^
/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/examples/DeviceInfo/DeviceInfo.ino: In function ‘void setup()’:
DeviceInfo:3:20: error: ‘Serial1’ was not declared in this scope
#define loraSerial Serial1
^
/Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork/examples/DeviceInfo/DeviceInfo.ino:13:3: note: in expansion of macro ‘loraSerial’
loraSerial.begin(57600);
^
Using library TheThingsNetwork at version 2.5.16 in folder: /Users/roberthancock/Documents/Arduino/libraries/TheThingsNetwork
exit status 1
’Serial1’ was not declared in this scope

Any idea for the fix?

DeviceInfo sketch only works with TTN UNO and TTN node
what node do you use ?

you can generate this in the console

11%20PM

1 Like