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

preguntada hace 2 años223 visualizaciones
1 Respuesta
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
EXPERTO
Greg_B
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas