You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When configuring a Kaiterra Mini air quality monitor (https://www.kaiterra.com/sensedge-mini-indoor-air-quality-monitor) to connect to a nanomq service, the monitor cannot finish the connection. The server with debug log level throws the following:
2025-02-05 15:19:10 [2211] INFO /home/runner/work/nanomq/nanomq/nng/src/sp/transport/mqtt/broker_tcp.c:412 tcptran_pipe_nego_cb: Disconnect Client due to 153 parse CONNECT failed
2025-02-05 15:19:10 [2211] ERROR /home/runner/work/nanomq/nanomq/nng/src/sp/transport/mqtt/broker_tcp.c:465 tcptran_pipe_nego_cb: connect nego error rv:(13)
The monitor works perfectly when connecting to mosquitto.
Kaiterra monitors are deployed all over the world (this model and others).
Expected behavior
The monitor should be able to initiate a connection and send data.
Actual Behavior
The connection doesn't complete and the monitor goes into a retry loop.
To Reproduce
N/A
** Environment Details **
NanoMQ version: NanoMQ Messaging Engine for Edge Computing & Messaging bus v0.23.2-2
Operating system and version: debian 12 bookworm
Compiler and language used
testing scenario
Client SDK
No idea as this is what comes from the monitor
Additional context
I used tcpdump to make a network capture during the connection, maybe that can help.
Sorry about this, this is a frequently asked question.
NanoMQ has a more strict rules upon user name and password. It doesnt allows null username & password because they are not valid UTF-8 format. and some SDK ignore such restriction.
You can try add random password and username, then the issue shall gone.
That's good to know, would it make sense to add this to the nanomq docs? I'm not sure which section it should live in but it could help for first timers. I don't mind sending a PR to nanomq if you point me in the right direction.
I installed mosquitto because I needed something to work for tests but wanted to use nanomq as the bridge behaviour in case of connection loss is better IMHO.
Describe the bug
When configuring a Kaiterra Mini air quality monitor (https://www.kaiterra.com/sensedge-mini-indoor-air-quality-monitor) to connect to a nanomq service, the monitor cannot finish the connection. The server with debug log level throws the following:
The monitor works perfectly when connecting to mosquitto.
Kaiterra monitors are deployed all over the world (this model and others).
Expected behavior
The monitor should be able to initiate a connection and send data.
Actual Behavior
The connection doesn't complete and the monitor goes into a retry loop.
To Reproduce
N/A
** Environment Details **
Client SDK
No idea as this is what comes from the monitor
Additional context
I used tcpdump to make a network capture during the connection, maybe that can help.
I attached the pcap file here, it can be opened in tcpdump or wireshark (had to add a txt extension)
kaiterra_mini_nanomq.pcap.txt
The text was updated successfully, but these errors were encountered: