awslabs / amazon-kinesis-video-streams-webrtc-sdk-c

Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-c/group__PublicMemberFunctions.html
Apache License 2.0
1.04k stars 317 forks source link

Add cmake flag for iot creds #2056

Closed sirknightj closed 2 months ago

sirknightj commented 2 months ago

Issue #, if available: N/A

What was changed? Add a CMake flag that defines the pre-processor macro: IOT_CORE_ENABLE_CREDENTIALS. This flag is used in the samples to enable IoT credentials. Otherwise, static credentials (AK, SK, (ST)) are used.

Why was it changed?

How was it changed?

What testing was done for the changes?

  1. cmake .., run kvsWebrtcClientMaster
    • IoT credentials are not used.
  2. cmake .. -DIOT_CORE_ENABLE_CREDENTIALS=OFF, run kvsWebrtcClientMaster
    • IoT credentials still not used.
  3. cmake .. -DIOT_CORE_ENABLE_CREDENTIALS=ON, run kvsWebrtcClientMaster
    • IoT credentials are used.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.