aws / amazon-freertos

DEPRECATED - See README.md
https://aws.amazon.com/freertos/
MIT License
2.54k stars 1.1k forks source link

[General] STM32L4 discovary board AWS IoT Tera Term Error #3540

Closed Obinex closed 1 year ago

Obinex commented 1 year ago

Briefly summarize the issue being raised So I went through all the steps to connect the STM32L4 to the AWS Cloud although I have encountered an error with the MQTT (the error I am receiving on Tera Term is shown in the references below), how do I rectify this issue?

Describe the desired outcome This is what the outcome should look like: image

System information

References image

Code/Steps to reproduce the current status If applicable, provide concrete instructions or the relevant code snippet(s) for reproducing the current status. Code should be wrapped in the cpp tag in order to be displayed clearly. For example:

printf("Hello World")

Additional context Add any remaining information not mentioned in the previous responses.

aggarg commented 1 year ago

Can you share the policy attached to your certificate?

archigup commented 1 year ago

What version of amazon-freertos are you using?

From the logs it seems that it is failing due to the incoming packet having type 1, which is a CONNECT packet; this should not be received from the server.

n9wxu commented 1 year ago

@Obinex Any answers to the questions above?

AniruddhaKanhere commented 1 year ago

I agree with @archigup (with a minor correction) - I don't think that packet of type '1' is valid at all. CONNECT packet is 0x10 when printed in the logs since the 1 is shifted 4 times into the higher nibble of the byte.

Can you capture some logs using Wireshark? It will help us figure out the bug much faster.

AniruddhaKanhere commented 1 year ago

@Obinex I shall be closing this issue now as we do not have information to work on. If you want, feel free to reopen this issue or create a new one if you have more questions and/or concerns.