Hello bakir,
Unfortunately that trace is encrypted, as the connection will be using TLS. Since you were able to use mosquitto to connect to the Greengrass Core I would imagine this is a firewall / network issue. Have you tried to connect both devices to a network with more permissive firewall settings, eg. a mobile hotspot vs using a corporate network.
Could you advise me on what operating system you are using, what version of Greengrass you are using, and what version of FreeRTOS you are using?
Another issue could be the credentials being misformatted when transferred to the header file, it may be worth double checking that they are formatted correctly.
Since the TI networking stack is offloaded to a separate chip, it could be difficult to get logs from the device (I have not personally attempted to get logs in this configuration).
Some suggestions that could help you are:
- Try connecting directly to AWS IoT Core. This would cut out any issues related to the Greengrass Core device.
- Setup a TLS echo server and see if you can connect your device to it. Here is a link to the documentation of the one distributed with Amazon FreeRTOS https://docs.aws.amazon.com/freertos/latest/portingguide/tls-echo-server.html. This gives you control over both ends of the connection as well as the certificates in use.
Also, a good first step could be to try and set up an unencrypted TCP echo test between your device and another device on your network to see if you are running into any network issues on your TI device.