salesforce HeartRate monitor sample application. This application sends periodic heart rate values into salesforce.com via the mbed SalesforceInterface API.

Dependencies:   BufferedSerial C12832 EthernetInterface GroveEarbudSensor Logger SalesforceInterface mbed-rtos mbed

Fork of df-2014-salesforce-hrm-k64f by Doug Anson

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Thu Sep 25 04:57:33 2014 +0000
Parent:
3:3a5fdfdabca3
Child:
5:1a6c3571c663
Commit message:
updates

Changed in this revision

Definitions.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
sf_creds.h Show annotated file Show diff for this revision Revisions of this file
--- a/Definitions.h	Thu Sep 25 03:38:14 2014 +0000
+++ b/Definitions.h	Thu Sep 25 04:57:33 2014 +0000
@@ -41,7 +41,7 @@
  #define MAX_TRIES                 4
  
  // Wait Time for iterations (ms)
- #define WAIT_TIME_MS              10000
+ #define WAIT_TIME_MS              2500
  
  // What platform we are compiling on
  #define _K64F_PLATFORM            true
--- a/main.cpp	Thu Sep 25 03:38:14 2014 +0000
+++ b/main.cpp	Thu Sep 25 04:57:33 2014 +0000
@@ -52,9 +52,9 @@
  // Salesforce.com Interface
  #include "SalesforceInterface.h"
  
- // Sensor Lat/Long
- #define SENSOR_LATITUDE     "37.404120"
- #define SENSOR_LONGITUDE    "-121.973195"
+ // Sensor Lat/Long - Moscone West: 37.783588, -122.403392
+ #define SENSOR_LATITUDE     "37.783588"
+ #define SENSOR_LONGITUDE    "-122.403392"
  
  // Salesforce.com Configuration/Tunables
  char *hrm_object_name          = "HeartRate__c";            // custom object 
--- a/sf_creds.h	Thu Sep 25 03:38:14 2014 +0000
+++ b/sf_creds.h	Thu Sep 25 04:57:33 2014 +0000
@@ -2,4 +2,5 @@
  char *username      = "xxx@yyy.zzz";
  char *password      = "password_goes_here";            // must be of the form: [password][security token]
  char *client_id     = "customer key goes here";
- char *client_secret = "client secret goes here";
\ No newline at end of file
+ char *client_secret = "client secret goes here";
+  
\ No newline at end of file