Resolved this by building for an ESP32C5 board, but then I get undefined reference to HusarnetClient.join & all other refs to husarnet instance of HusarnetClient
Can husarnet only be built for Arduino brand boards?
NOPE! - Build for Arduino Nano esp32 (which is lited in the Husarnet Compatible boards list!!!) fails with undefined references to ZN14HusarnetClient4joinEPKcS1 just like when built for std ESP32 Dev. Module
Maybe the library search in ~/Arduino/libraries/Husarnet_ESP32 will provide a clue:
grep: ./src/husarnet/ports/fat: Is a directory
grep: ./src/husarnet/api_server: Is a directory
grep: ./src/esp32c3: Is a directory
grep: ./src/esp32c3/libhusarnet.a: binary file matches
grep: ./src/esp32: Is a directory
grep: ./src/esp32/libhusarnet.a: binary file matches
grep: ./src/esp32s3: Is a directory
grep: ./src/esp32s3/libhusarnet.a: binary file matches
grep: ./examples: Is a directory
grep: ./examples/simple-webserver: Is a directory
./examples/simple-webserver/simple-webserver.ino:HusarnetClient husarnet;
dmk@del1:
Hmmm, maybe it only supports the esp32c2 and esp32c3 boards:
NOPE!!!
/home/dmk/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/…/lib/gcc/riscv32-esp-elf/14.2.0/…/…/…/…/riscv32-esp-elf/bin/ld: /home/dmk/Arduino%/husarnet/husarnet.ino:36:(.text._Z5setupv+0x106): undefined reference to HusarnetClient::isJoined()' /home/dmk/.arduino15/packages/esp32/tools/esp-rv32/2411/bin/../lib/gcc/riscv32-esp-elf/14.2.0/../../../../riscv32-esp-elf/bin/ld: /home/dmk/Arduino%/husarnet/husarnet.ino:41:(.text._Z5setupv+0x136): undefined reference to HusarnetClient::getIpAddressabi:cxx11’
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board ESP32C3 Dev Module.
/home/dmk/.arduino15/packages/esp32/tools/esp-x32/2411/bin/…/lib/gcc/xtensa-esp-elf/14.2.0/…/…/…/…/xtensa-esp-elf/bin/ld: /home/dmk/Arduino%/husarnet/husarnet.ino:41:(.text._Z5setupv+0xd8): undefined reference to _ZN14HusarnetClient8isJoinedEv' /home/dmk/.arduino15/packages/esp32/tools/esp-x32/2411/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: /home/dmk/Arduino%/husarnet/husarnet.ino:48:(.text._Z5setupv+0xfc): undefined reference to _ZN14HusarnetClient12getIpAddressB5cxx11Ev’
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board ESP32S3 Dev Module.