Help with MQTT

ffneil@comcast.net's Avatar Topic Author

Help with MQTT

2 years 6 months ago
#1857
 I am able to publish topics and see them in the logs.  I am having an issue with subscribing,  When I try to subscribe to anything  I get client session is unknown.
 21/03/2024 21:09:45.09 · DEBUG · Server.doCommand - MqttPublish|timis~{{current_second}} from21/03/2024 21:09:45.09 · DEBUG · Server.doCommand - MqttPublish|timis~4521/03/2024 21:09:47.09 · DEBUG · Server.doCommand - MqttSubscribe|timeis from dashboard-fx-3sif21/03/2024 21:09:47.09 · ERROR · MqttServer.Subscribe - Error in MoveNext at line #138:5 - Client session 'timeis' is unknown.

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Help with MQTT

2 years 6 months ago - 2 years 6 months ago
#1871
The subscribe command actually requires two parameters the server to subscribe to and the topic to be subscribed. However, the command only accepts the topic. This will be fixed in the next server update.
Last edit: 2 years 6 months ago by davep.

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Help with MQTT

2 years 5 months ago
#1896
The server that was just released fixes the MQTTSubscribe and MQTTUnsubscribe commands. In addition incoming MQTT data will automatically be parsed to server variables if there is no driver that knows how to consume the topic.
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.278 seconds