Add support for authentication in mqtt_pub and mqtt_sub