void DynamoBDClient_Setup() { ddbClient.setAWSRegion(AWS_REGION); ddbClient.setAWSEndpoint(AWS_ENDPOINT); ddbClient.setAWSSecretKey(awsSecKey); ddbClient.setAWSKeyID(awsKeyID); ddbClient.setHttpClient(&httpClient); ddbClient.setDateTimeProvider(&dateTimeProvider); }
void setup() { /* Begin serial communication. */ Serial.begin(9600); /* Initialize ddbClient. */ ddbClient.setAWSRegion(AWS_REGION); ddbClient.setAWSEndpoint(AWS_ENDPOINT); ddbClient.setAWSSecretKey(awsSecKey); ddbClient.setAWSKeyID(awsKeyID); ddbClient.setHttpClient(&httpClient); ddbClient.setDateTimeProvider(&dateTimeProvider); /* Open SWITCH_PIN to be read from. */ pinMode(SWITCH_PIN, INPUT); pinMode(led2, OUTPUT); }
/* This function is called once at start up ----------------------------------*/ void setup() { /* Begin serial communication. */ Serial.begin(9600); /* Initialize ddbClient. */ ddbClient.setAWSRegion(AWS_REGION); ddbClient.setAWSEndpoint(AWS_ENDPOINT); ddbClient.setAWSSecretKey(awsSecKey); ddbClient.setAWSKeyID(awsKeyID); ddbClient.setHttpClient(&httpClient); ddbClient.setDateTimeProvider(&dateTimeProvider); //My custom app here Spark.variable("rssi", &rssi, INT); }