Husarnet Arduino IDE example error

Hello! I am new to Husarnet and I have been trying to at least get the simple_webserver example to build on my system. I have been following the example in the Husarnet documentation linked here and have had no luck.

I received the error: husarnet.h:7:6: error: #error "This library requires ESP32 Arduino Core version 3.0.3 or newer. Please upgrade your board/platform."

I understand that the ESP32 Arduino core version needs to be 3.0.3 or newer as described in the error.

In Arduino IDE, I have esp32 by Espressif Systems installed with version 3.0.7

I also have Arduino ESP32 Boards by Arduino installed with version 2.0.18-arduino.5

And I have the Husarnet library Husarnet ESP32 by Husarnet installed with version 2.0.0-beta4

I am trying to flash to an Arduino Nano ESP32, and although it seems I have followed the tutorial correctly with the correct version installs, I am unable to build the simple-webserver example.

Has anyone encountered this? Am I missing something here? I would appreciate any help I could get on this.

Hi

Try using other esp32 devboard or wait for the board maintainer to update the platform.

Regards, Filip

Hi Filip, thanks for the help.

I have an esp32 devboard that I have been attempting to use but I am still receiving compilation errors. Using the ESP32 Dev Module board on Arduino IDE, I am getting this:

c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti\libstdc++.a(random.o):(.literal._ZNSt12_GLOBAL__N_117__libc_getentropyEPv+0x4): undefined reference to `getentropy'
c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti\libstdc++.a(random.o): in function `std::(anonymous namespace)::__libc_getentropy(void*)':
/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/src/c++11/random.cc:179: undefined reference to `getentropy'
c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti\libstdc++.a(random.o): in function `std::random_device::_M_init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/src/c++11/random.cc:452: undefined reference to `getentropy'
c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti\libc.a(lib_a-arc4random.o):(.literal+0x14): undefined reference to `getentropy'
c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: c:/users/<user>/appdata/local/arduino15/packages/esp32/tools/esp-x32/2302/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/lib/no-rtti\libc.a(lib_a-arc4random.o): in function `_rs_stir':
/builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/arc4random.c:89: undefined reference to `getentropy'
collect2.exe: error: ld returned 1 exit status

I also tried using the Platformio example for esp32 dev module and received the same issue.
I am assuming this is also due to the platform just not being up to date. Can you confirm that this is the case, or if its on my end?