-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception (28): after configuration #14
Comments
As mentioned in the README file your problem might be related to pubsubclient default MQTT_MAX_PACKET_SIZE of 128. Open the pubsubclent library and change value to 256 instead of 128. If you are using platformio you can also setup a build flag instead of modifying the pubsubclient library. |
This could also be some sort of bug related to the way you configured the device. Did you modify other configuration settings than simply the AP? I would start to debug this by hard resetting the device's EEPROM and starting again from scratch, this time only setting minimal settings to connect to your AP and get an IP address (no MQTT, etc). If that works, incrementally change settings and restart until you find the crash and add that to this bug report and we'll get it fixed. |
I've got the same issue. If I reduce to basics and only enter the WiFi client settings I get an error saying the settings failed to save. If I fill in every field the settings save OK but it crashes right after getting an IP. I've tried several different modules all with the same result. If I put the stack dump into Exception Decoder I get:
|
OK, so the issue with the web page saying "Failed to save settings" is that the MQTT port is set to zero so if you only fill in the remote AP SSID & Password it will bomb out as the MQTT port is invalid. Shouldn't this default to 1883? Looking at the code it looks like even if one set the MQTT port via Anyway, now knowing that the MQTT port needs to be set on the web page to prevent a saving error still doen't fix the fact that the code crashes once connected to an AP. |
Further digging suggests this is an issue in the code related to null pointers being passed to the libraries. I see this on every crash "Exception 28: LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads" A quick Google says this is due to null pointer or some other way data is being passed incorrectly to the libraries. This is now beyond my abilities as I was looking for an easy to use set of tools :-( |
Just a thought but is it possible that the issue is in the ArduinoJson.h file? This file hasn't been touched for over a year but the original author has brought out several revisions. It seems to contain memcpy routines which have changed since the original and I've found references to this in other reports of exception 28 |
Giving up. I've tried rolling back library versions and it still crashes. I've blown away my entire development setup and started from a clean system, it still crashes. I've tried lots of different hardware modules, it still crashes. |
Sorry holidays have gotten in the way! I’m sorry you’re having problems! I know it works, I’ll try to dig into your feedback soon to see if I can’t crack the code.
… On Nov 25, 2018, at 9:09 AM, mikemoyse ***@***.***> wrote:
Giving up. I've tried rolling back library versions and it still crashes. I've blown away my entire development setup and started from a clean system, it still crashes. I've tried lots of different hardware modules, it still crashes.
This just doesn't work, looks like a great project but sadly it's not usable.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Cool and thanks for getting back to me. If you need anything please shout. I'd really like to use this and I'm more than happy to work with you to resolve it. |
Don't know if this helps but I've tried using this similar project I particularly like the way it redirects to the web interface when the wireless key is entered. |
Any luck? |
Holidays took up all my time but I’m still on it!
… On Dec 4, 2018, at 3:35 PM, mikemoyse ***@***.***> wrote:
Don't know if this helps but I've tried using this similar project
https://github.com/1technophile/OpenMQTTGateway and it works fine on my hardware. No crashes at all.
I particularly like the way it redirects to the web interface when the wireless key is entered.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi. I have the same error and I believe that I found the problem. The error I have is:
The problem occurred when I configure the device as wifi client and I don't configure the mqtt settings. |
I get an exception after configuration when it restarts, what is the problem?
The text was updated successfully, but these errors were encountered: