Indicates whether an MQTT connection is enabled or disabled.
See the field description for details.
Values:
MQTT_STATE_UNSPECIFIED (0):
No MQTT state specified. If not specified,
MQTT will be enabled by default.
MQTT_ENABLED (1):
Enables a MQTT connection.
MQTT_DISABLED (2):
Disables a MQTT connection.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class MqttState (2.9.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.9.2 (latest)](/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.MqttState)\n- [2.9.1](/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types.MqttState)\n- [2.8.1](/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types.MqttState)\n- [2.7.0](/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types.MqttState)\n- [2.6.4](/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types.MqttState)\n- [2.5.1](/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types.MqttState)\n- [2.4.1](/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types.MqttState)\n- [2.3.0](/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types.MqttState)\n- [2.2.1](/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types.MqttState)\n- [2.1.0](/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types.MqttState)\n- [2.0.2](/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types.MqttState)\n- [1.0.2](/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types.MqttState)\n- [0.3.3](/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types.MqttState) \n\n MqttState(value)\n\nIndicates whether an MQTT connection is enabled or disabled.\nSee the field description for details.\n\nValues:\nMQTT_STATE_UNSPECIFIED (0):\nNo MQTT state specified. If not specified,\nMQTT will be enabled by default.\nMQTT_ENABLED (1):\nEnables a MQTT connection.\nMQTT_DISABLED (2):\nDisables a MQTT connection."]]