aws-samples / amazon-kinesis-video-streams-producer-embedded-c

Light-wight Amazon Kinesis Video Streams Producer SDK For FreeRTOS/Embedded Linux
Apache License 2.0
29 stars 18 forks source link

Add safe check when getting ISO 8601 time #26

Closed weichihl closed 2 years ago

weichihl commented 2 years ago

AWS RESTful API would check if ISO 8601 time is today. If system time isn't set correctly, then the request would fail and get a HTTP 403 error. This solution add an old time and compare system time to it to see if system time has been set correctly.

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