unreal.MQTTClientObject

class unreal.MQTTClientObject(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

MQTTClient Object

C++ Source:

  • Plugin: MQTT

  • Module: MQTTCore

  • File: MQTTClientObject.h

connect(on_connect) None

Connect

Parameters:

on_connect (OnConnectDelegate) –

disconnect(on_disconnect) None

Disconnect

Parameters:

on_disconnect (OnDisconnectDelegate) –

get_client_id() str

Get Client Id

Return type:

str

get_url() MQTTURL

URL for this client.

Return type:

MQTTURL

publish(topic, payload, qo_s=MQTTQualityOfService.ONCE, retain=False) None

OutMessageId can be used to match this request with the callback response.

Parameters:
subscribe(topic, qo_s=MQTTQualityOfService.ONCE) MQTTSubscriptionObject

OutMessageId can be used to match this request with the callback response.

Parameters:
Return type:

MQTTSubscriptionObject

subscribe_many(topics, qo_s) Array[MQTTSubscriptionObject]

OutMessageId can be used to match this request with the callback response.

Parameters:
Return type:

Array[MQTTSubscriptionObject]

unsubscribe(topic) None

OutMessageId can be used to match this request with the callback response.

Parameters:

topic (str) –