Is IoT Greengrass core support QoS 2?

0

Can local MQTT devices publish messages with QoS 2 to Greengrass core?

Andrey
已提問 1 年前檢視次數 253 次
1 個回答
0

Yes, both Moquette and EMQX brokers support QoS 2 for clients connected directly to the broker. Please note that IoT Core does not support QoS 2.

AWS
已回答 1 年前
  • When I use awscrt.mqtt.Connection to Greengrass Moquette component: future, id = connection.publish(topic, message, QoS.EXACTLY_ONCE) future.result() return ValueError in both IoT Core and Greengrass core cases:

    File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 428, in result return self.__get_result() File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exception File "/home/ec2-user/.local/lib/python3.7/site-packages/awscrt/mqtt.py", line 700, in publish packet_id = _awscrt.mqtt_client_connection_publish(self._binding, topic, payload, qos.value, retain, puback) ValueError

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南