-
Notifications
You must be signed in to change notification settings - Fork 120
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
tb.connect crashes on Lolin(Wemos) D1 mini pro board #145
Comments
This is a typo and your part and not an issue with the library. If you see this question on StackOverflow, the person asking has the exact same problem. What is occuring is that you are trying to save Making your array char thingsboardServer[] = "host.domain.tld"; Simply write this instead. constexpr char thingsboardServer[] = "host.domain.tld"; |
I tested that already, but the crash-result is the same :-( |
Does it also not work when you add the size. constexpr const char thingsboardServer[16] = "host.domain.tld"; |
The same. Even |
Interesting is it the same exception code so The exception causes and their number are described in this table |
Yes, it's the same
|
Ah after thinking about it for a while I think I might have remembered what the issue could be. But some configurations or boards that use the This is done over a #include <ESP8266WiFi.h>
// Disable PROGMEM because the ESP8266WiFi library,
// does not support flash strings.
#define THINGSBOARD_ENABLE_PROGMEM 0
#include <ThingsBoard.h> |
Bingo! That fixed it! :-) Thanks for your help figuring this out! Is this something that could be detected by the library? |
The above mentioned snippet is included in the examples and it is the first segment in the The only thing I could do is always print a warning to the screen when using "If LoadStoreException occur and the device crashes, when using ThingsBoard try to disable PROGMEM (#define THINGSBOARD_ENABLE_PROGMEM 0), which might cause problems with devices that do not support using constant strings in flash memory" |
Hi,
I having trouble with using the 0.10.2 library with a Lolin (Wemos) D1 mini Pro (https://iotappstory.com/hardware/ESP8266/boards/lolinwemos-d1-mini-pro). The following line crashes the board
tb.connect(thingsboardServer, TOKEN)
with the following dump
I'm not that good in debugging such issues, but if someone can give some hits, then i'll dig up some more :-) Here is the complete sketch that i'm using
The text was updated successfully, but these errors were encountered: