Publish then subscribe and repeat #327
-
I have a function that publishes to mqtt topic then calls a function where I subscribe to another topic inside a while True loop. In the subscribe callback function i call the function that publishes to mqtt. If a condition is not me What i want to accomplish: what actually happens: I tried using one client for both sub and pub and i tried a client for each but neither worked! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Are you trying to subscribe multiple times? You said
You only need to subscribe once to a specific topic. |
Beta Was this translation helpful? Give feedback.
Are you trying to subscribe multiple times? You said
You only need to subscribe once to a specific topic.