gcc -
v in a terminal to check if you need to update your compiler./etc/apt/sources.list
in a editor and replace the name wheezy
with jessie
.Jessie
to Wheezy
, open /etc/apt/sources.list
again and replace jessie
with wheezy
, after that do an update of your package list:gcc -v
at this moment, the default version is still 4.7. So we are going to change that to make the newer gcc 4.9 the default version. First remove all gcc
alternatives.gcc-v
it should show version 4.9.2 or greater. You can always change the default compiler with the following command.main.cpp
file from src
folder. You can use any editor you want. We will use here nano
.USER_ID
, DEVICE_ID
, and DEVICE_CREDENTIAL
with the information you provided while registering your device in the platform. Here is an example screenshot of how the main.cpp
file should look like before editing these fields. When you are done editing the parameters, exit the nano editor pressing Ctrl+X
and then type 'y
' to save the changes.run.sh
contains the -DRASPBERRY=ON
commandline parameter as follows -run.sh
script.sum
resource defined in the main.cpp
that simply performs a sum. For test the device resources, please go to the API Explorer that appears in the device dashboard.install.sh
script, that will compile and install the client as a service. This step will copy a init script file to /etc/init.d/thinger
, and also will copy the compiled binary file to /usr/local/bin/thinger
. So if you want to remove the daemon client you can stop the service and remove those files.run.sh
script, which run the standalone client, both clients will be connecting to the platform and disconnecting each other continuously. If you need to stop the background client, please use this command.sum
example is already present. You can try to define a resource for turning on and off a led, read a sensor value, execute a system command, and so on. Some tutorials will be available soon for covering this basic functionality.