BasicDiscovery.py unable to publish messages

0

Seeing below error in GGConnManager.log -

For the device -publisher, I used AmazonRootCA1.pem for rootCA. not sure why the connection error says unknow CA

[ERROR]-MQTT message decoding error: unable to decode received MQTT message. {"errorString": "remote error: tls: unknown certificate authority"}

Any help is appreciated

已提问 2 年前223 查看次数
1 回答
0

Hi. It seems you are using GGv1. Please be aware that GGv1 is now in maintenance mode and GGv2 is recommended for any new development. Please consider to follow this tutorial instead: https://docs.aws.amazon.com/greengrass/v2/developerguide/client-devices-tutorial.html

That said, the BasicDiscovery.py script in the Python V1 SDK should perform Greengrass discovery and retrieve the GGv1 group CA (https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/greengrass/basicDiscovery.py#L106). It should then use the group CA to connect to the GGv1 core (https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/greengrass/basicDiscovery.py#L150). But it looks like it's finding and using the wrong group CA.

profile pictureAWS
专家
Greg_B
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则