Skip to content Skip to sidebar Skip to footer

How To Get Topic Of Mqtt Client In Websocket Server

I am trying to get topic of mqtt client, i searched in google, i couldn't find right one. for example, from mqtt client, publish one message,consider server topic is 'topicOfServe

Solution 1:

You seam to be confusing a couple of things here

  1. Topics are just "addresses" that any MQTT client can send a message to, they are not owned in any way by any client.
  2. There is no way to determine which MQTT client published any message from another MQTT client unless the sender encodes that information somewhere in the message payload.

Post a Comment for "How To Get Topic Of Mqtt Client In Websocket Server"