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
<mqtt-connection
url="ws://iot.eclipse.org:80/ws"
auto>
<mqtt-publish topic="foo/bar" payload="this is easy" auto></mqtt-publish>
</mqtt-connection>
Minimal working example dose not automatically publish to "foo/bar" when the the connection is established. Probably _propertiesChanged is not run when this._parentConnection is set via its parent.
The text was updated successfully, but these errors were encountered:
You can just call client.publish() even before a 'connect' event in MQTT.js, the publish will be queued up and sent as the connection is established (for the first time).
I know.. but the mqtt-publish element will not have any knowledge about which client it belongs too until set by the parent mqtt-connection . Even the mqtt-connection might get the client injected via its mqtt-connection#client property and then will delegate it down to the mqtt-publish element. Anyway just wanted to document this and create a fix and test for it.
Minimal working example dose not automatically publish to "foo/bar" when the the connection is established. Probably
_propertiesChanged
is not run whenthis._parentConnection
is set via its parent.The text was updated successfully, but these errors were encountered: