aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
975 stars 623 forks source link

Attempting a TLS connection to a3uvulybovep9z-ats.iot.us-west-2.amazonaws.com:8883 #1806

Closed tritrantdt closed 2 years ago

tritrantdt commented 2 years ago

ommiting target configuration... [ DEBUG ] TX: b'conf set time_hwm 1653281746\r\n' (_send_cmd) (provision.py:_send_cmd) [ DEBUG ] RX: b'\r\x1b[K 2577380 [MQTTAgent ] Attempting a TLS connection to a3uvulybovep9z-ats.iot.us-west-2.amazonaws.com:8883. (mqtt_agent_task.c:1101)\r\n' (_send_cmd) (provision.py:_send_cmd) Traceback (most recent call last): File "C:\iot-reference-stm32u5\tools\provision.py", line 935, in main() File "C:\iot-reference-stm32u5\tools\provision.py", line 922, in main target.conf_commit() File "C:\iot-reference-stm32u5\tools\provision.py", line 275, in conf_commit self._send_cmd(b"conf set", key, self._staged_config[key]) File "C:\iot-reference-stm32u5\tools\provision.py", line 107, in _send_cmd raise TargetDevice.ReadbackError() main.TargetDevice.ReadbackError

n9wxu commented 2 years ago

Have you configured the certificate and private key with values linked to this endpoint? Have you added the Amazon root ca to your device so the endpoint tls can be validated by your device?

ravibhagavandas commented 2 years ago

@tritrantdt Are you still facing the issue? If so could you describe more, and also ensure steps above has been done?

paulbartell commented 2 years ago

Github Issue were not enabled for the iot-reference-stm32u5 repository. I've now enabled them.

@tritrantdt : As a temporary workaround you may do either of the following:

  1. Erase the external NOR flash with STM32CubeProgrammer OR
  2. Set an invalid wifi ssid via the serial console (putty, terraterm, screen, or similar), reset, then re-run provision.py.
conf set wifi_ssid
conf commit
reset
aggarg commented 2 years ago

I am closing this issue. Please feel free to reopen or create a new one if you still face any issue.