Following that post, were Hugo say agent can post to dynamoDB
https://discourse.electricimp.com/discussion/3920/aws-iot-platform
is there anyone who can help me on that, I’ve never used aws before…and really dont know where to start, including the code to post on aws
Hi @Johnygab ,
AWSDynamoDB.class.nut
/**
* This class can be used to interact with a Amazon DynamoDB table
*
* @author Aron Steg <aron@mysticpants.com>
*
* @version 0.0.1
*/
class AWSDynamoDB {
static version = [0, 0, 2];
This file has been truncated. show original
AWSRequestV4.class.nut
/**
* This class can be used to generate correctly structured requests intended for AWS endpoints,
* sign the requests using Amazon's "Signature Version 4", and send them. It's intended to be used
* internally by wrapper classes for specific AWS services.
*
* @author Gino Miglio <gino@electricimp.com>
* @author Mikhail Yurasov <mikhail@electricimp.com>
*
* @version 1.0.2
*/
This file has been truncated. show original
tests.agent.nut
function mstime() {
local d = date();
return format("%d.%06d", d.time, d.usec);
}
function test_BatchWriteItem() {
local events = [];
for (local j = 0; j < 25; j++) {
local event = {};
This file has been truncated. show original
Here is a quick starting point. I have implemented PutItem, BatchWriteItem and UpdateItem. It shouldn’t be hard to implement the rest yourself. I had to modify AWSRequestV4 a bit so don’t use the library’s version (yet).
osherl
April 7, 2016, 5:43pm
4
Excellent library @budefridge .