Web server over gprs causes exception

viktak
Posts: 8
Joined: Thu Jul 30, 2020 5:37 pm

Web server over gprs causes exception

Postby viktak » Thu Jul 30, 2020 5:53 pm

Dear all,
In my project I need to build a small web server which should use GPRS rather than wifi.

I have already implemented the web server, works fine over wifi, but when the wifi is off and I only have GPRS, the moment I issue:

Code: Select all

webServer.begin();
it reboots with an exception:

Code: Select all

/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c:1442 (xQueueGenericReceive)- assert failed!
abort() was called at PC 0x40088b05 on core 1

Backtrace: 0x4008c704:0x3ffb1d80 0x4008c935:0x3ffb1da0 0x40088b05:0x3ffb1dc0 0x4010e89a:0x3ffb1e00 0x4010ea9a:0x3ffb1e20 0x40100fd8:0x3ffb1e40 0x40101041:0x3ffb1e60 0x4011078a:0x3ffb1e80 0x4010ed0c:0x3ffb1ea0 0x4010057c:0x3ffb1ee0 0x40115feb:0x3ffb1f00 0x400d788c:0x3ffb1f40 0x400d5132:0x3ffb1f60 0x400de627:0x3ffb1fb0 0x40088e19:0x3ffb1fd0

Rebooting...
.. and everything starts over.

This is the relevant section of my code:

Code: Select all

WebServer webServer(80);
if (MDNS.begin("esp32")) {
  Serial.println("MDNS responder started.");
}

webServer.on("/", handleRoot);
webServer.on("/login.html", handleLogin);

//  Start HTTP (web) server
webServer.begin();	//	this is the point where it dies.. :(
Is there a particular reason for this? Is it at all possible to create a web server on GPRS? Or is wifi only?

Who is online

Users browsing this forum: Bing [Bot] and 45 guests