Skip to content
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

Got Fatal exception 28(LoadProhibitedCause) when using ThingerSmartConfig #28

Open
sindar225 opened this issue Oct 29, 2019 · 1 comment

Comments

@sindar225
Copy link

Hi,
I'm building an MQ2 sensor on NodeMCU v3 board and I'd like to use deep sleep feature so that to run on low power profile. Having read many guides of how to build such a system with thinger IoT I came up with a code that (from my perspective) should run well, but it doesn't and I receive Fatal exception 28(LoadProhibitedCause) error.

One more note: I had to set #define DISABLE_TLS because otherwise it would fail with [_SOCKET] Error while connecting! error.

My set-up:
thinger-io 1.6.2
NodeMCU v3 LoLin 1.0

Arduino IDE 1.8.8
esp8266 2.5.2
thinger.io 2.13.0

ESP code
https://justpaste.it/5gbmh

Stack trace:
https://justpaste.it/1lig7

@sindar225
Copy link
Author

From what I could get there are a few problems:

  1. Fatal exception 28(LoadProhibitedCause) goes away when following code is added to ThingerSmartHome.h:
WiFi.persistent(false);
WiFi.mode(WIFI_OFF);
WiFi.mode(WIFI_STA);

But then another issue turns up.
2. client_.available() always returns 0; To solve this problem we need to set a constant delay(50);
3. Another issue occurs when using write_bucket() method and ESP.deepsleep(). With confirm_write set to false (default value) the board ESP8266 goes sleep before data has been written. confirm_write=true by default solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant