Heltec_ESP32
Heltec_ESP32 copied to clipboard
LoRaWAN_OLED
The example script LoRaWAN_OLED does not support the Wireless Stick(V3) = "Wireless_Stick_V3", probably as the files have to be adapted to the smaller display (64*32). LoRaWAN_APP.h and LoRaWAN_APP.cpp only define the display if it's a WIFI_Lora_32 device.
Error message when compiling LoRaWAN_OLED (framework 0.0.7, library 1.1.1):
/private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/.arduinoIDE-unsaved2023122-3535-1xx1337.gijvh/LoRaWan_OLED/LoRaWan_OLED.ino: In function 'void setup()':
/private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/.arduinoIDE-unsaved2023122-3535-1xx1337.gijvh/LoRaWan_OLED/LoRaWan_OLED.ino:83:13: error: 'class LoRaWanClass' has no member named 'displayMcuInit'
LoRaWAN.displayMcuInit();
^~~~~~~~~~~~~~
/private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/.arduinoIDE-unsaved2023122-3535-1xx1337.gijvh/LoRaWan_OLED/LoRaWan_OLED.ino: In function 'void loop()':
/private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/.arduinoIDE-unsaved2023122-3535-1xx1337.gijvh/LoRaWan_OLED/LoRaWan_OLED.ino:103:15: error: 'class LoRaWanClass' has no member named 'displayJoining'
LoRaWAN.displayJoining();
^~~~~~~~~~~~~~
/private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/.arduinoIDE-unsaved2023122-3535-1xx1337.gijvh/LoRaWan_OLED/LoRaWan_OLED.ino:109:15: error: 'class LoRaWanClass' has no member named 'displaySending'
LoRaWAN.displaySending();
^~~~~~~~~~~~~~
/private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/.arduinoIDE-unsaved2023122-3535-1xx1337.gijvh/LoRaWan_OLED/LoRaWan_OLED.ino:125:15: error: 'class LoRaWanClass' has no member named 'displayAck'
LoRaWAN.displayAck();
^~~~~~~~~~
exit status 1
Compilation error: 'class LoRaWanClass' has no member named 'displayMcuInit'
LoRaWAN_APP.h :
#if defined(WIFI_LoRa_32_V3)||defined(WIFI_LoRa_32_V2))
void displayJoining();
void displayJoined();
void displaySending();
void displayAck();
void displayMcuInit();
#endif
};
LoRaWAN_APP.ccp
#if defined(WIFI_LoRa_32_V3)||defined(WIFI_LoRa_32_V2)||defined(WIFI_LoRa_32)
#include <Wire.h>
#include "HT_SSD1306Wire.h"
SSD1306Wire display(0x3c, 500000, SDA_OLED, SCL_OLED, GEOMETRY_128_64, RST_OLED);; // addr , freq , i2c group , resolution , rst
uint8_t ifDisplayAck=0;
uint8_t isDispayOn=0;
#endif
the referenced files seem to be part of the platform package, but the issue also occurs with the OTA_OLED.ino from the library. I'll ad this to the platform package issues though.
If I add || defined(Wireless_Stick_V3) I get the following error message:
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/sketch/LoRaWan_OLED_custom.ino.cpp.o:(.literal._Z5setupv+0x20): undefined reference to `LoRaWanClass::displayMcuInit()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/sketch/LoRaWan_OLED_custom.ino.cpp.o:(.literal._Z4loopv+0x18): undefined reference to `LoRaWanClass::displayAck()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/sketch/LoRaWan_OLED_custom.ino.cpp.o:(.literal._Z4loopv+0x1c): undefined reference to `LoRaWanClass::displayJoining()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/sketch/LoRaWan_OLED_custom.ino.cpp.o:(.literal._Z4loopv+0x20): undefined reference to `LoRaWanClass::displaySending()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/sketch/LoRaWan_OLED_custom.ino.cpp.o: in function `setup()':
/Users/Felix/Documents/Arduino/LoRaWan_OLED_custom/LoRaWan_OLED_custom.ino:81: undefined reference to `LoRaWanClass::displayMcuInit()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/sketch/LoRaWan_OLED_custom.ino.cpp.o: in function `loop()':
/Users/Felix/Documents/Arduino/LoRaWan_OLED_custom/LoRaWan_OLED_custom.ino:125: undefined reference to `LoRaWanClass::displayAck()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /Users/Felix/Documents/Arduino/LoRaWan_OLED_custom/LoRaWan_OLED_custom.ino:103: undefined reference to `LoRaWanClass::displayJoining()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /Users/Felix/Documents/Arduino/LoRaWan_OLED_custom/LoRaWan_OLED_custom.ino:105: undefined reference to `LoRaWanClass::displaySending()'
/Users/Felix/Library/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /private/var/folders/br/k52zl5l16bgg65qt6cqzmm9r0000gn/T/arduino-sketch-8B13E11C0387F3067B9BA1273BDB61C5/libraries/LoraWan102/LoRaWan_APP.cpp.o:(.literal._ZN12LoRaWanClass5sleepE12eDeviceClass+0x0): undefined reference to `Radio'
collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1