Running the application

From inside the Kaa-IoT-Device/src folder, create a new file named main.c and update it as shown:

// Modified version of: https://kaaproject.github.io/kaa/docs/v0.10.0/Programming-guide/Your-first-Kaa-application/#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <time.h>#include <kaa.h>#include <platform/kaa_client.h>#include <kaa_error.h>#include <kaa_configuration_manager.h>#include <kaa_logging.h>#include <gen/kaa_logging_gen.h>#include <platform/kaa_client.h>#include <utilities/kaa_log.h>#include <platform-impl/common/ext_log_upload_strategies.h>#include <wiringPi.h>#define MAXTIMINGS 85#define DHTPIN 8 /* https://pinout.xyz/pinout/wiringpi */int dht11_dat[5] = {    0,    0,    0,    0,    0};static int32_t sample_period; ...

Get Enterprise Internet of Things Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.