コード例 #1
0
void DynamoBDClient_Setup() {
	ddbClient.setAWSRegion(AWS_REGION);
	ddbClient.setAWSEndpoint(AWS_ENDPOINT);
	ddbClient.setAWSSecretKey(awsSecKey);
	ddbClient.setAWSKeyID(awsKeyID);
	ddbClient.setHttpClient(&httpClient);
	ddbClient.setDateTimeProvider(&dateTimeProvider);
}
コード例 #2
0
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);

}
コード例 #3
0
/* 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);

}