private static void publish ( MqttSettings settings , String subtopic , byte [ ] payload , int qos , boolean retained ) throws MqttException { getClient ( settings ) . publish ( String . format ( "%s/%s" , settings . getTopic ( ) , subtopic ) , payload , qos , retained ) ; }
Publishes message into given MQTT topic