master
Set connect function after configuring the connection
Only fire CLOUD_CONNECTED events after having subscribed to topics
Fix cs_base64_encode call
Fix build w/o logging