hey iv been using arduino for a while now so i have a fair understanding of how it goes, however im working on a project and when trying to make a tiny addition to my already functional code these errors come up:
error: invalid suffix "a7d268114e0aebf94faa42afe52ba6d02890a01" on integer constant
error: expected constructor, destructor, or type conversion before '(' token
these two errors both relate to one line of code : get (v2/devices/0a7d268114e0aebf94faa42afe52ba6d02890a01/activate);
im using the xively library to send sensor readings to an account at xively, can anyone be soo kind to help my out here. oh and that line of code is in the global space/scope
by global space i mean it is not a part of the setup code or in any loops, here is a piece of my code, the entire thing is 300 lines of code so i wont post all. its the last line of this piece of code, everything else before it worked fine before
char ssid[] = "dlink"; // your network SSID
//char pass[] = "A1349AB8EB"; // your network password (use for WPA, or use as key for WEP)
//int keyIndex = 0; // your network key Index number (needed only for WEP)
int status = WL_IDLE_STATUS;
// Your Xively key to let you upload data
char xivelyKey[] = "k3blloHCZKJ4HDlBO4ly7Vxl6sRa1DHxXXZIc2LumEl0B5Tm";
//your xively feed ID #define xivelyFeed 2103714570
#define sensorPin 3 //this is the pin monitored to upload to xively #define motorEnable 9 //signal to enable the motor #define motor1APin 8 // motor direction control pin #define motor2APin 11 // motor direction control pin #define confirmIn 6 // confirmation input signal from scale sensor #define confirmOut 5 // this feeds into the sensorPin #define scaleSensorPin A0 //pin that the scale sensor is attached to #define switchPin 2 //input from the switch
// Define the strings for our datastream IDs
XivelyDatastream datastreams[] = {
XivelyDatastream(scaleSensorID, strlen(scaleSensorID), DATASTREAM_FLOAT),
XivelyDatastream(motorID, strlen(motorID), DATASTREAM_FLOAT),
};
// Finally, wrap the datastreams into a feed
XivelyFeed feed(xivelyFeed, datastreams, 2 /* number of datastreams */);
ok maybe i should have been a bit more clear: get("v2/devices/0a7d268114e0aebf94faa42afe52ba6d02890a01/activate");
thats a command (if thats the rite name for it) to send data to a device at xively.com and the long alpha numeric symbols is the passcode to activate the device at xively.com