256dpi / arduino-mqtt

MQTT library for Arduino
MIT License
1.01k stars 230 forks source link

Subscribe query #309

Closed supercrab closed 10 months ago

supercrab commented 1 year ago

Do I have to call the subscribe method every time after connect or can I do it once before the connect?

Cheers Maso

256dpi commented 10 months ago

Subscribe must be called after connect. If the subscription persists on the server depends on multiple things. I encourage you to read the MQTT specification for the details.

I'm closing this for now.