code: def publish(self, topic, payload, qos=0, retain=False):
          
          # TODO: check (full transmission) success
          return self._client.publish(topic, payload, qos, retain)
docs: Publishes an MQTT message