I am having an issue where the Esp8266DateTimeProvider is not being updated with the current time. Based on some review of the code, it seems like the first failure response from AWS should set the current time on the unit, but I am not seeing any response back from the POST at all.
I modified the AwsClient.cpp file to log some data:
data
POST http://dynamodb.us-east-1.amazonaws.com/ HTTP/1.1
content-length:109
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20000101T000041Z
x-amz-target:DynamoDB_20120810.PutItem
Authorization: AWS4-HMAC-SHA256 Credential=AXXXXXXXXXQ/20000101/us-east-1/dynamodb/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-target, Signature=bcXXXXXXXXXXX1833e0
Connection:close
{"Item":{"Device":{"S":"huzzah1"},"time":{"N":"20000101000041"},"temp":{"N":"21"}},"TableName":"TestTable"}
server
dynamodb.us-east-1.amazonaws.com
port
80
I am having an issue where the
Esp8266DateTimeProvider
is not being updated with the current time. Based on some review of the code, it seems like the first failure response from AWS should set the current time on the unit, but I am not seeing any response back from the POST at all.I modified the
AwsClient.cpp
file to log some data:and the request I am sending looks like this:
In
AmazonDynamoDBClient.cpp
I log the response:and I get nothing back:
However, when I use POSTMAN to make the same POST request, I do get the expected
400
response with a body:which seems like it could do the trick of updating the time. Any ideas for me?
PS - thanks for your work on this library - I wonder if it would be possible to merge in the work from https://github.com/svdgraaf/aws-sdk-arduino and https://github.com/canadaduane/aws-sdk-esp8266 eventually?