Will data be pushed or do I need to pull? #67
-
Installed WeConnect-mqtt and configured a MQTT broker. Do I need to pull data from this client or is it pushed by the client. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It is pushed from WeConnect-mqtt to your broker. In your client you have to subscribe. Subscribing to |
Beta Was this translation helpful? Give feedback.
-
As i have some time left i take the liberty to answer for Till! (He will correct me if i am wrong) 1.) weconnect-mqtt polls the VW servers in a certain interval (i believe 300s per default) see also: https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern HTH, Tom |
Beta Was this translation helpful? Give feedback.
-
Thanks guys! Will try it again and let you know. |
Beta Was this translation helpful? Give feedback.
-
Subscription was the step I missed! Thnx again! |
Beta Was this translation helpful? Give feedback.
As i have some time left i take the liberty to answer for Till! (He will correct me if i am wrong)
1.) weconnect-mqtt polls the VW servers in a certain interval (i believe 300s per default)
2.) as soon as it receives data from the VW servers it publishes (push) it to your mqtt-broker
3.) from there you can grab (subscribe) it with any mqtt-client you wish. this way your mqtt-client sees new values anytime they are updated.
see also: https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern
HTH, Tom