blob: 9550b2ea0556a418cba61df1ba18c44db36efddb [file] [log] [blame]
Mustafa Ozcelikors34c4b2d2017-08-18 11:50:01 +02001/*
2 * Copyright (c) 2017 FH Dortmund and others
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Description:
9 * Hono interaction library for Rover - Header file
10 *
11 * Authors:
12 * M. Ozcelikors, R.Hottger
13 * <mozcelikors@gmail.com> <robert.hoettger@fh-dortmund.de>
14 *
15 */
16
17#ifndef HONO_INTERACTION_HONO_INTERACTION_H_
18#define HONO_INTERACTION_HONO_INTERACTION_H_
19
20
Mustafa Ozcelikors03784c02017-09-01 17:25:46 +020021//Defines
22
23//#define DEBUG_HTTP_RESPONSE 1
24#define DEBUG_DEVICE_REGISTRATION 1
25
26
Mustafa Ozcelikors34c4b2d2017-08-18 11:50:01 +020027//Interfaces
28
Mustafa Ozcelikors4808c582017-09-08 23:48:20 +020029int registerEntriesToHonoInstance (void);
Mustafa Ozcelikors176630e2017-10-03 14:45:18 +020030int registerDeviceToHonoInstance (char * host_name, int port, char * tenant_name, char * device_id);
Mustafa Ozcelikors4808c582017-09-08 23:48:20 +020031int sendTelemetryDataToHonoInstance (char * host_name, int port, char * tenant_name, char * device_id, char * field, double value);
32int sendEventDataToHonoInstance (char * host_name, int port, char * tenant_name, char * device_id, char * field, double value);
Mustafa Ozcelikors1b914a72017-10-11 16:15:05 +020033int handleCode(int code);
Mustafa Ozcelikors34c4b2d2017-08-18 11:50:01 +020034
35#endif /* HONO_INTERACTION_HONO_INTERACTION_H_ */