Sending collected data from Raspberry PI 3

Hello

I want to send collected data from Raspberry PI 3 (which is collected using xbee module) to the cloud. How I can apply this?

Hi, the most simple way is to use the Linux Client in the RPI. Just connect your RPI to the platform, and define new resources based on your XBee data. Can you read Xbee in C++ right now?.

Best.

actually I’m newbie, can you please help me with this? I am trying to collect data sent from one xbee to another using serial.read command. But I think I am doing sth wrong. I don’t know how to define resource here.

actually these are the code lines:

#include “arduPi.h” //i found this library in the web-site of cooking-hacks

float data;

void setup(){
Serial.begin(9600);

}

void loop(){
while(Serial.available()){
data = Serial.read();
}
}

int main(int argc, char *argv[]){
setup();
while(1){
loop();
}
thinger_device ###
thing[“resource”]>>data;

}

Can you help please?

This is the error that I have. Also I did not understand how to add new library to CMakeLists.txt?

PLEASE REPLY AS SOON AS POSSIBLE :pray::pray::pray:
Deadline is coming:(