Advertisement
Guest User

Untitled

a guest
Nov 26th, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. #include "H4AsyncTCP.h"
  2. #include <ArmadilloHTTP.h>
  3. #include "WiFi.h"
  4. ArmadilloHTTP aClient;
  5.  
  6. void responseHandler(ARMA_HTTP_REPLY r){ // r is a struct will all the reply fields you might need
  7. Serial.printf("\nRaw Data\n");
  8. dumphex(r.data,r.length);
  9. }
  10.  
  11. void setup() {
  12. Serial.begin(115200);
  13. WiFi.begin("bw-compat", "growhouse");
  14. WiFi.waitForConnectResult();
  15. Serial.printf("Connected %s\n",WiFi.localIP().toString());
  16.  
  17. aClient.GET("http://jsonip.com",responseHandler); // <--- Yup, that's pretty much it!
  18. }
  19.  
  20. void loop() {}
  21.  
  22. //im getting error at compile
  23. Linking .pio\build\esp32dev\chip-2.1.3-esp32.elf
  24. c:/users/dr3ad/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib07e\libH4.a(H4.cpp.o): in function `setup()':
  25. C:\Users\dr3ad\Documents\hamza/.pio/libdeps/esp32dev/H4/src/H4.cpp:358: multiple definition of `setup()'; .pio\build\esp32dev\src\test.ino.cpp.o:C:/Users/dr3ad/Documents/hamza/src/test.ino:11: first defined here
  26. c:/users/dr3ad/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\lib07e\libH4.a(H4.cpp.o): in function `loop()':
  27. C:\Users\dr3ad\Documents\hamza/.pio/libdeps/esp32dev/H4/src/H4.cpp:364: multiple definition of `loop()'; .pio\build\esp32dev\src\test.ino.cpp.o:C:/Users/dr3ad/Documents/hamza/src/test.ino:20: first defined here
  28. c:/users/dr3ad/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\libf24\libH4AsyncTCP.a(H4AsyncTCP.cpp.o):(.literal._Z10_raw_errorPva+0xc): undefined reference to `h4'
  29. c:/users/dr3ad/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\libc7f\libH4Tools.a(mbx.cpp.o):(.literal._ZN3mbx5clearEPh+0x0): undefined reference to `mbx::pool'
  30. c:/users/dr3ad/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\libc7f\libH4Tools.a(mbx.cpp.o):(.literal._ZN3mbx5clearEPh+0x4): undefined reference to `mbx::pool'
  31. collect2.exe: error: ld returned 1 exit status
  32. *** [.pio\build\esp32dev\chip-2.1.3-esp32.elf] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement