You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Under the "Attach policies to certificate" section create a new policy with all the permissions (this is not suggested for Things associated with production applications, there you should choose only the required permissions):
- Under `Featured FreeRTOS IoT Integration -> Qualification Test Configurations -> Qualification Execution Test Configurations`,
631
638
choose `MQTT Test`.
632
639
- Under `FreeRTOS IoT Integration -> Qualification Test Configurations -> Qualification Parameter Configurations`
633
640
- Set `Endpoint for MQTT Broker to use` to your AWS IoT endpoint
634
641
- Set `Client Identifier for MQTT Test`
635
642
- Build and run.
643
+
- If you have memory leaks reported from unity, it could be due to retained messages. Try clearing the retained messages. Install any MQTT client library (e.g. mosquitto CLI) and publish a message to the test topic with an empty message.
644
+
```
645
+
mosquitto_pub.exe \
646
+
--cert <device-certifiacte> \
647
+
--key <device-private-key> \
648
+
--cafile <server-root-CA> \
649
+
-h <broker-endpoint> -p 8883 \
650
+
-t "<test_topic>"
651
+
-m ""
652
+
-r
653
+
```
636
654
- See test result on target output.
637
655
- Example output
638
656
@@ -646,16 +664,30 @@ disabled when running the qualification test. You can change the log level by
646
664
```
647
665
648
666
3. Transport Interface Test
649
-
- Follow
667
+
- Create an EC2 instance and change the security group inbound rules to accept packets from all traffic.
668
+
- Clone [FreeRTOS-Libraries-Integration-Tests](https://github.com/FreeRTOS/FreeRTOS-Libraries-Integration-Tests) in a directory of your choice within your EC2 file system.
669
+
- Follow the instructions [here](https://github.com/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/tree/main/tools/echo_server) to generate the self signed certificates. Download the certificates generated for the server to your PC.
670
+
- Run the go server at `FreeRTOS-Libraries-Integration-Tests/tools/echo_server` with TLS. Follow
650
671
[Run The Transport Interface Test](https://github.com/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/tree/main/src/transport_interface#6-run-the-transport-interface-test)
651
672
to start an echo server.
673
+
- In the file [test_param_config.h](./components/FreeRTOS-Libraries-Integration-Tests/config/test_param_config.h) set `ECHO_SERVER_ROOT_CA` to `NULL`
674
+
- Replace the file `/main/certs/root_cert_auth.crt` with your server’s root-ca certificate that you downloaded but name the file same as before (including the extension `root_cert_auth.crt`).
675
+
- Use the command below to provision your board with the certificates you downloaded
0 commit comments