Comments (11)
Maybe a stack issue - could you try to replace the _onData function in uMQTTBroker.cpp with this version:
void uMQTTBroker::_onData(uint32_t *args, const char* topic, uint32_t topic_len, const char *data, uint32_t length) {
char *topic_str;
if ((topic_str = (char *)malloc(topic_len+1)) == NULL)
return;
os_memcpy(topic_str, topic, topic_len);
topic_str[topic_len] = '\0';
TheBroker->onData((String)topic_str, data, length);
free(topic_str);
}
from umqttbroker.
Same-ish error
Ill keep looking on my end.
Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
PC: 0x40209292: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 33
EXCVADDR: 0x666e6f6f
Decoding stack results
0x40209282: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 32
0x40209254: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 25
0x40209274: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 28
0x4021c67c: ethernet_output at netif/ethernet.c line 312
0x40101238: umm_poison_free_fl(void*, char const*, int) at C:\Users\agierens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\umm_malloc/umm_local.c line 149
0x40209254: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 25
0x402367f0: publish_topic at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_server.c line 65
0x40100f49: check_poison_neighbors(uint16_t) at C:\Users\agierens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\umm_malloc/umm_local.c line 71
0x40101005: umm_malloc_core(size_t) at C:\Users\agierens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\umm_malloc\umm_malloc.cpp line 458
0x402378cc: find_topic at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_topiclist.c line 73
0x402367b4: publish_topic at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_server.c line 58
0x4023751c: MQTT_ClientCon_recv_cb at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_server.c line 351
from umqttbroker.
Seems to be in the copying of the topic string. Anything special with your topic str?
from umqttbroker.
Nope, I just call subscribe("configure")
from umqttbroker.
hi Andrew,
which tool are you using to decode the stack?
I have the some tool 'ESP decoder' (sorry, don't have the name at hand now) which seems to work for esp32, but maybe not usable for esp8266 stacks.
thanks in advance,
pottendo
from umqttbroker.
I use https://github.com/me-no-dev/EspExceptionDecoder
Seems to look to work for ESP8266? Let me know if you want anymore info, sorry just a bit confused by your question
from umqttbroker.
Hi,
i am also facing the same issue, could you please share how you resolved the issue?
thanks
from umqttbroker.
from umqttbroker.
Thanks for the suggestion. I am interested in ESP broker (connected to cloud through GSM module) and would like to connect couple of Tasmota devices. Any help would be appreciated.
Thanks
from umqttbroker.
from umqttbroker.
Hi,
i am also facing the same issue, could you please share how you resolved the issue?
thanks
Hi,
i am also facing the same issue, could you please share how you resolved the issue?
thanks )))))
from umqttbroker.
Related Issues (20)
- Unable to connect after reconnecting several times HOT 1
- disconnect and reconnect 6-10 time,the broker will cant't be connected HOT 1
- Client count HOT 8
- How to restart the broker?
- Ignored espconn_send() return (error) value.
- Broker Crashing when wifi disconnects HOT 2
- Accessing via mosquitto_sub/pub. How? HOT 1
- Broker doesn't accept new connections after 24h running? HOT 4
- Locally published topics do not appear to retain
- Compiling Error HOT 1
- ESP32 Port? HOT 1
- CRASH BROKER ((( WHY ?
- Ip address MQTT broker
- Compiling error using uMQTTBroker HOT 1
- Partial message / disconnections HOT 1
- Connection problem
- problem with using lwip:v2
- mqtt no user and pass HOT 1
- Broker cannot be connected after client disconnect
- Cannot send HTTPClient POST with MQTT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umqttbroker.