Unknown Host Error

0

I'm working on a proof-of concept project for a customer. It will connect to AWS IoT to send device logs to S3.

To test that the device can handle the activity, I'm starting with the AWS embedded C SDK. My workflow is to build the code for an x86-64 Linux host for testing and debug. Then, I move the code to another workspace where I cross-compile it for the embedded device, a 32-bit ARM-based Linux device.

Up to yesterday, the subscribe-publish sample was working successfully on both my development system and the target device.

Yesterday, I created a new thing in a different region from the original (moved from us-east-2 to us-east-1) so I could access some of the customer's AWS Lambda rules. I updated my device certificates and keys as well as the endpoint in the sample program header file. Since the move, I'm unable to connect to the AWS IoT service in either us-east-1 or us-east-2.

When I run the sample code, I get the following output (name and id redacted):

DEBUG: iot_tls_connect L#161 . Connecting to arn:aws:iot:us-east-1:3071:thing/******/8883...
ERROR: iot_tls_connect L#164 failed
! mbedtls_net_connect returned -0x52

ERROR: main L#190 Error(-23) connecting to arn:aws:iot:us-east-1:****3071:thing/***********:8883

As part of my debug effort, I deleted all my things and certificates and created from scratch this morning. I'm at a bit of a loss as to what to do next.

The device, certificate and attached policy show up in the console.

Just to check out the keys and strings I put them in the Python AWS sample program and had a failure to connect as well.

Not sure what I'm missing. Need some guidance.

Thanks.

Edited by: GaryKB on Aug 6, 2020 10:35 AM

GaryKB
질문됨 4년 전213회 조회
2개 답변
0

Found the issue.
Used bad endpoint nema.

GaryKB
답변함 4년 전
0

Found the issue.
Used bad endpoint name.

GaryKB
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠