Skip to content

esp mqtt crashes when a client connects #69

@krishnak

Description

@krishnak

I installed your binary from github using the esptool.py as described in your post. I am running your code on Weimos D1 clone/ ESP8266 with 4MB flash. After the broker was setup, it had two IP's one from my router and another from its network. All well so far

I have another NodeMCU running Tasmato which is connected to my router. I configured it to post to your broker.

As soon as it started sending the message, the application crashed on the MQTT broker see output below.

uMQTT Broker V2.0.10 starting

Config found and loaded
Starting Console TCP Server on port 7777
Max number of TCP clients: 15
mode : sta(ac:0b:fb:db:9f:ed) + softAP(ae:0b:fb:db:9f:ed)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
mode: 0 -> 3
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt 

connected with Sundara, channel 5
dhcp client start...
connect to ssid Sundara, channel 5
ip:192.168.1.18,mask:255.255.255.0,gw:192.168.1.1
ip:192.168.1.18,mask:255.255.255.0,gw:192.168.1.1,dns:8.8.8.8
Got NTP server: 162.159.200.123
MQTT: Partial message received
MQTT: Partial message received
MQTT: Partial message received
Fatal exception 28(LoadProhibitedCause):
epc1=0x4000df60, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x0�000000
ets Jan  8 2013,rst cause:2, boot mode:(3,4)

load 0x40100000, len 30196, room 16 
tail 4
chksum 0xaf
load 0x3ffe8000, len 2124, room 4 
tail 8
chksum 0x9b
load 0x3ffe8850, len 10060, room 0 
tail 12
chksum 0x9f
csum 0x9f

The Tasmato keeps trying to resend and this is resulting in a continuous crash. Can you please let me know whether it is a code issue .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions