Hello,
I am new to shelly users and I would like to create connect to MQTT. I have done my Rabbit MQ on my server, which is on another network then my shelly. I put there login, server address and password, but still i not connected. If I check log, then it says shos_mqtt_conn.c:489 MQTT0: Connect status 256 and still trying to connect.
If I try to push some message to this MQTT from another source (perosnal api), it will successfuly connect and push message.
Try installing a MQTT tool like https://mqtt-explorer.com/ and see if that connects to Mosquitto. This is a great way of seeing how MQTT really works, and maintenance like removing retained configuration messages.
You say your own personal API connects, which suggests you’ve got past the username and password credentials stage (there are a few pitfalls using the HASS MQTT add-in).
I’m assuming that Rabbit MQ works the same as Mosquitto as a broker, so the next area of concern is which is on another network - there’s a whole load of Layer2 / Layer3 / IPv4 / routing / DNS issues that could be the problem here.
Basically, get a laptop on the same segment as the Shelly with a similar address and try MQTT explorer, or telnet <rabbit> 1883 or nc -zv <rabbit> 1883 or even cat < /dev/tcp/<rabbit>/1883 to the broker.
All of my own MQTT clients / Tasmota / Shelly just connect… if the network is configured (almost always via IPv4 on microcontrollers).
Thank you for reply, it was my fault, did not correct understand between MQTT and AMQP. My Rabbit was set up for AMQP and after I enabled MQTT, successfully connected.