This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
app-notes:cumulocity-agent [2017/02/10 13:10] krepel [Add the Cumulocity agent to the SDK] |
app-notes:cumulocity-agent [2017/02/10 13:14] krepel [Build the agent] |
||
---|---|---|---|
Line 66: | Line 66: | ||
scp c8yAgent.conf <user>@<host>:/etc/c8yAgent.conf | scp c8yAgent.conf <user>@<host>:/etc/c8yAgent.conf | ||
</code> | </code> | ||
- | ==== You have to take some changes to the SDK ==== | + | ==== You have to take some changes to the cumulocity SDK ==== |
We have to do this, because the toolchain don't support the function **to_string()**. | We have to do this, because the toolchain don't support the function **to_string()**. | ||
include myString.h in the follow files: | include myString.h in the follow files: | ||
Line 86: | Line 86: | ||
* src/srnetsocket.cc ---> #include <errno.h> | * src/srnetsocket.cc ---> #include <errno.h> | ||
==== Build the agent ==== | ==== Build the agent ==== | ||
- | Now we can build the agent for the target device. | + | Now we can build the agent for the target device with the SDK directory. |
<code bash> | <code bash> | ||
export STAGING_DIR=/opt/toolchain | export STAGING_DIR=/opt/toolchain |