Page 1 of 1

gpio_viewer will not connect to wifi

Posted: Thu Apr 10, 2025 4:21 pm
by Phillip
this is what I see in the serial monitor:

Code: Select all

10:11:02.941 -> Connecting
10:11:02.941 -> .............
10:11:04.248 -> Connected to the WiFi network
10:11:04.248 -> Local ESP32 IP: 192.168.0.95
10:11:04.248 -> GPIOViewer >> Release 1.6.2
10:11:04.248 -> GPIOViewer >> ESP32 Core Version 3.2.0
10:11:04.248 -> GPIOViewer >> Chip Model:ESP32-D0WD, revision:100
10:11:04.248 -> GPIOViewer >> No PSRAM
10:11:04.248 -> 
10:11:04.248 -> assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1854 (Required to lock TCPIP core functionality!)
10:11:04.248 -> 
10:11:04.248 -> Backtrace: 0x40082520:0x3ffb1f60 0x4008c2b1:0x3ffb1f80 0x400924f5:0x3ffb1fa0 0x400f5603:0x3ffb20e0 0x400f5779:0x3ffb2100 0x400dd259:0x3ffb2120 0x400dc4e5:0x3ffb2170 0x400d355f:0x3ffb2190 0x400d3d71:0x3ffb2220 0x400e05cb:0x3ffb2270 0x4008cfa2:0x3ffb2290
10:11:04.278 -> 
10:11:04.278 -> ELF file SHA256: 520661a06
10:11:04.278 -> 
10:11:04.562 -> Rebooting...
10:11:04.562 -> ets Jun  8 2016 00:22:57
I have downloaded the GPIOViewer v1.6.2 and the ESPAsyncWebServer from the GITHUB webpage.
The AsynTCP library was installed via the Arduino IDE.

The sketch is based on the GPIOViewer example and is as follows:

Code: Select all

// #define NO_PIN_FUNCTIONS

  #include <gpio_viewer.h> // Must me the first include in your project
  GPIOViewer gpio_viewer;

  #include "config.h"
  #include <WiFi.h>
  
  const int LED = 5;

  void setup()
  {
    Serial.begin(115200);
    delay(1000);

    pinMode(LED, OUTPUT);
  
      WiFi.mode(WIFI_STA); //Optional
      WiFi.begin(ssid, password);
      Serial.println("\nConnecting");
  
      while(WiFi.status() != WL_CONNECTED){
          Serial.print(".");
          delay(100);
      }
  
      Serial.println("\nConnected to the WiFi network");
      Serial.print("Local ESP32 IP: ");
      Serial.println(WiFi.localIP());

    // Must be at the end of your setup
    // gpio_viewer.setSamplingInterval(25); // You can set the sampling interval in ms, if not set default is 100ms
    gpio_viewer.begin();
  }

// You don't need to change your loop function
  void loop() {
    Serial.println("\n ... in loop() .......");
    delay(10000);
  }
Any help will be greatly appreciated.
Thank you.

Re: gpio_viewer will not connect to wifi

Posted: Thu Apr 10, 2025 5:47 pm
by lbernstone
If you look in the example for gpioviewer, it lists the known working versions of the various components. Make sure you are using those versions. This may very well mean you need to use git to download the correct version.

Re: gpio_viewer will not connect to wifi

Posted: Thu Apr 10, 2025 6:46 pm
by Phillip
Thank you for your help.

I think I have the latest working versions for all the components required as follows:

GPIOViewer
GPIOViewer.png
GPIOViewer.png (88.92 KiB) Viewed 348 times
ESP Async WebServer
ESP Async WebServer.png
ESP Async WebServer.png (54.84 KiB) Viewed 348 times
AsyncTCP
AsyncTCP.png
AsyncTCP.png (48.93 KiB) Viewed 348 times
The Espressif Systems version will follow.

Re: gpio_viewer will not connect to wifi

Posted: Thu Apr 10, 2025 6:48 pm
by Phillip
And lastly, here is my current version of Espressif Systems Core
Espressif Systems.png
Espressif Systems.png (51.86 KiB) Viewed 348 times
Thanks again for your help.

Re: gpio_viewer will not connect to wifi

Posted: Thu Apr 10, 2025 8:11 pm
by lbernstone
What device?

Re: gpio_viewer will not connect to wifi

Posted: Thu Apr 10, 2025 8:26 pm
by Phillip
I am using an ESP32-WROOM-32D (36-pins) as shown next:

ESP32-WROOM-32D-.jpeg
ESP32-WROOM-32D-.jpeg (149.99 KiB) Viewed 339 times
Thanks.

Re: gpio_viewer will not connect to wifi

Posted: Sat Apr 12, 2025 6:01 pm
by Phillip
I got this to work by replacing the required GPIOViewer libraries from the latest installed versions back to the "Last tested on:" library versions noted in the GPIOViewer example app.

While I am overjoyed that I now know how to get this to work, I find it odd that the latest library versions will not work with the GPIOViewer library. I hope I am wrong about this but that is my experience at the moment.

Thanks.