2. The agent uses the MAC of the WLAN chip as an external device ID. You have to
check the sticker on the bottom side of your XDK under WLAN: 7C_7C_7C_7C_7C_7C ,
e.g. 7C7C7C7C7C7C
NOTE: remove the _ form the WLAN MAC adress
3. Upload SMART Rest Template "XDK_Template_Collection.json" from folder
resources/XDK_Template_Collection.json to your C8Y tenant. Pls
see https://www.cumulocity.com/guides/users-guide/device-management for
required steps
6 3. Install XDK Workbench
Install the XDK Workbench: https://xdk.bosch-connectivity.com/software-downloads
NOTE: The installation path must not contains blanks.
NOTE: The current version of the Workbench 3.6.1 defines a buffer size that is not
sufficient for the certificate being used for Cumulocity. Therefore the buffer has to be
increased.
In order to avoid a buffer overflow, as seen in the following error message:
INFO | XDK DEVICE 1: MQTT_ConnectToBroker_Z: connecting secure
INFO | XDK DEVICE 1: 11 [SSL:1] Sec_receiveCB: HORRIBLE Buffer full state=1
(0x200023fc)
Increase MBEDTLS_SSL_MAX_CONTENT_LEN macro value from 4850 to 5950 in
Common/config/MbedTLS/ MbedtlsConfigTLS.h in line 2921. The macro
MBEDTLS_SSL_MAX_CONTENT_LEN determines the size of both the incoming and
outgoing TLS I/O buffer used by MbedTLS library.
7 4. Prepare project
1. Clone git repository
git clone https://github.com/SoftwareAG/cumulocity-xdk-agent.git
2. In XDK Workbench import project into your workspace
3. In XDK Workbench: project clean and project build
4. Connect XDK over USB cable
8 5. Flash your C8Y Device Agent to your XDK
NOTE: connect your XDK using USB cable to get debug messages.
1. Flash project to XDK using the XDK Workbench 3.6.1