# AWS IoT Fleet Provisioning Demo

**URL:** <https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434>\
**Category:** Libraries\
**Tags:** debug, aws-iot-core\
**Created:** [March 4, 2024, 1:44pm UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434 "2024-03-04T13:44:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 4, 2024, 1:44pm UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/1 "2024-03-04T13:44:34Z")

</div>

![Screenshot 2024-03-04 191302](https://d2v6vdsk2p900z.cloudfront.net/original/2X/2/2d4f926265c6a1cc73ad593f663e5e43f7f9b7f5.png)

i am getting this error even though tcp\_socket\_wrapper.c in the location.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [March 4, 2024, 4:44pm UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/2 "2024-03-04T16:44:17Z")

</div>

Are you hitting the path length limit in Windows? Can you try putting the code in a top level folder in your drive, for example: `D:\src\`.

---

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 5, 2024, 4:31am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/3 "2024-03-05T04:31:01Z")

</div>

Thanks Aggarg, that works  
now if i try to run the solution i got this error  
 ![Screenshot 2024-03-05 043034](https://d2v6vdsk2p900z.cloudfront.net/original/2X/a/ac8996f9578bd104c42ba8b58109d3d10dc1ada7.png)

---

<div class="post-metadata">

**Author:** ![ActoryOu](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/actoryou/32/2880_2.png) [@ActoryOu](https://forums.freertos.org/u/ActoryOu)\
**Post date:** [March 5, 2024, 6:20am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/4 "2024-03-05T06:20:18Z")

</div>

Hi @sharath,  
That means Visual Studio is selecting FreeRTOS+TCP as startup project, which is wrong.  
Please try below step to re-set it to Fleet Provisioning Demo one manually as workaround.

1. Right click on Fleet Provisioning Demo
2. Choose Set as Startup Project  
 ![image](https://d2v6vdsk2p900z.cloudfront.net/original/2X/c/cef43181974ad9a388e80a1462e4183b581d48bf.png)

I’ll provide a fix later to set it correctly by default.  
Thanks for your feedback!

---

<div class="post-metadata">

**Author:** ![ActoryOu](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/actoryou/32/2880_2.png) [@ActoryOu](https://forums.freertos.org/u/ActoryOu)\
**Post date:** [March 5, 2024, 7:24am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/5 "2024-03-05T07:24:53Z")

</div>

Note that [PR #1190](https://github.com/FreeRTOS/FreeRTOS/pull/1190) fixes the issue of selecting the correct project by default.

---

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 5, 2024, 8:48am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/6 "2024-03-05T08:48:51Z")

</div>

Thanks @ActoryOu That works good.

---

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 6, 2024, 8:48am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/7 "2024-03-06T08:48:49Z")

</div>

![Screenshot 2024-03-06 141031](https://d2v6vdsk2p900z.cloudfront.net/original/2X/f/f7fa865680892f6b9cc2e21424c17f116259f4e5.png)  
is that correct way to insert certificate?

---

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 6, 2024, 8:49am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/8 "2024-03-06T08:49:22Z")

</div>

i got this error while running

 ![Screenshot 2024-03-06 141703](https://d2v6vdsk2p900z.cloudfront.net/original/2X/2/24c0b07dab5cf9b4763ff58a260e91d8196d6980.png)

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [March 6, 2024, 9:20am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/9 "2024-03-06T09:20:02Z")

</div>

> [@sharath](#):
>
> is that correct way to insert certificate?

Yes, seems correct.

> [@sharath](#):
>
> i got this error while running

DNS resolution is failing. Are you able to reach out to the internet? Can you try to get the TCP working first?

---

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 7, 2024, 10:04am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/10 "2024-03-07T10:04:16Z")

</div>

![image](https://d2v6vdsk2p900z.cloudfront.net/original/2X/c/cd2387df8ce830bdc6e2b2a4519e50b945b4ed12.png)

i got ip address, can i assume i got the internet

---

<div class="post-metadata">

**Author:** ![ActoryOu](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/actoryou/32/2880_2.png) [@ActoryOu](https://forums.freertos.org/u/ActoryOu)\
**Post date:** [March 8, 2024, 2:12am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/11 "2024-03-08T02:12:17Z")

</div>

Hi @sharath,

There seems to be no log for the DHCP process. Could you please share your network environment settings? Is DHCP mandatory, and what subnet are you using under the router? This information would be helpful.

Thank you.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [March 8, 2024, 9:19am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/12 "2024-03-08T09:19:28Z")

</div>

> [@sharath](#):
>
> i got ip address, can i assume i got the internet

I do not think you should assume that. You can try to connect to an echo server to verify. As @ActoryOu pointed out, are you using DHCP or not?

---

<div class="post-metadata">

**Author:** ![sharath](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sharath](https://forums.freertos.org/u/sharath)\
**Post date:** [March 8, 2024, 10:30am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/13 "2024-03-08T10:30:57Z")

</div>

Thanks guys i think so i connected to internet.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [March 12, 2024, 5:50am UTC](https://forums.freertos.org/t/aws-iot-fleet-provisioning-demo/19434/14 "2024-03-12T05:50:15Z")

</div>

Thank you for reporting back. I’d appreciate if you share your solution also as it may be helpful to other community members.
