flespi-software / MQTT-Tiles

Open-source MQTT-based IoT dashboard visualization tool. Has full MQTT 5.0 support. Allows easy dashboards sharing. Works with any MQTT broker supporting the WSS protocol.
https://mqtttiles.flespi.io
MIT License
102 stars 14 forks source link

Could not receive from subscribed topic. UPD: at MQTT v.5 #36

Closed CHE77 closed 8 months ago

CHE77 commented 8 months ago

Used HiveMQ broker Publishing works. - Got the messages at web client. Could not receive from subscribed topic. data (2).txt

Screenshot_2024-01-17-09-30-08-313_com.android.chrome.jpg

CHE77 commented 8 months ago

Problem was at slow internet, big ping. Some mqtt brokers do not pass messages if ping > 700ms. But they show connection as green. It would be nice to have widget with ping to broker or other quality of connection indication. It looks like this blogger also failed to show basic mqtt actions with MQTT Tiles, probably due to same reason) https://www.youtube.com/watch?v=_4zVNPEZI8g&t=234

dexif commented 8 months ago

Now you can see the ping. The ping packet is sent once every 2*keep_alive. screenshot-mqtttiles flespi io-2024 01 18-15_27_37

bam80 commented 8 months ago

@CHE77 maybe rising QoS wold help in your case? IIRC, "0" by default means you will receive the packets at most once.

CHE77 commented 8 months ago

@CHE77 maybe rising QoS would help in your case?

Tested with different QoS - no changes. In my case ping - 700ms, due to satellite connection. To make WSS connection with broker is more difficult than TCP. But when it done on IotManager app publishing and receiving work fine, and at MQTT Tiles - only for publishing. At same broker - clusterfly.ru mqtt v5 Must say at MQTT Tiles could receive messages only via live-control.com broker v3.1 But have some other issues there

It is good to have possibility to set QoS at MQTT Tiles as well.

bam80 commented 8 months ago

I have no idea how it can happen: after all, it's TCP - so the packets should be guaranteed to be delivered as long as TCP connection is not broken, isn't it @dexif ?

CHE77 commented 8 months ago

@CHE77 maybe rising QoS would help in your case?

Tested with different QoS - no changes. In my case ping - 700ms, due to satellite connection. To make WSS connection with broker is more difficult than TCP. But when it done on IotManager app publishing and receiving work fine, and at MQTT Tiles - only for publishing. At same broker - clusterfly.ru mqtt v5 Must say at MQTT Tiles could receive messages only via live-control.com broker v3.1 But have some other issues there

It is good to have possibility to set QoS at MQTT Tiles as well.

CHE77 commented 8 months ago

UPD: I changed all connections to MQTT v.3.1.1 and now all ok, at any ping) But clusterfly.ru, HiveMQ and EMQX brokers support v.5. Could not make them work at v.5 even with good ping

bam80 commented 8 months ago

@CHE77 please correct the issue topic accordingly

dexif commented 8 months ago

Fixed. Please check it.