I connected to a mqtt server and subscribe a topic. The client is hanging if I don't use mqtt.end() but even if I use or don't use mqtt.end(), the client only receive message once. Is it possible to make client keep listening and keep receiving message from server? I would be appreciated if you can help. Thank you in advance!
I connected to a mqtt server and subscribe a topic. The client is hanging if I don't use mqtt.end() but even if I use or don't use mqtt.end(), the client only receive message once. Is it possible to make client keep listening and keep receiving message from server? I would be appreciated if you can help. Thank you in advance!