Mustafa Ozcelikors | 34c4b2d | 2017-08-18 11:50:01 +0200 | [diff] [blame] | 1 | /* |
| 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 Ozcelikors | 03784c0 | 2017-09-01 17:25:46 +0200 | [diff] [blame] | 21 | //Defines |
| 22 | |
| 23 | //#define DEBUG_HTTP_RESPONSE 1 |
| 24 | #define DEBUG_DEVICE_REGISTRATION 1 |
| 25 | |
| 26 | |
Mustafa Ozcelikors | 34c4b2d | 2017-08-18 11:50:01 +0200 | [diff] [blame] | 27 | //Interfaces |
| 28 | |
Mustafa Ozcelikors | 4808c58 | 2017-09-08 23:48:20 +0200 | [diff] [blame] | 29 | int registerEntriesToHonoInstance (void); |
Mustafa Ozcelikors | 176630e | 2017-10-03 14:45:18 +0200 | [diff] [blame] | 30 | int registerDeviceToHonoInstance (char * host_name, int port, char * tenant_name, char * device_id); |
Mustafa Ozcelikors | 4808c58 | 2017-09-08 23:48:20 +0200 | [diff] [blame] | 31 | int sendTelemetryDataToHonoInstance (char * host_name, int port, char * tenant_name, char * device_id, char * field, double value); |
| 32 | int sendEventDataToHonoInstance (char * host_name, int port, char * tenant_name, char * device_id, char * field, double value); |
Mustafa Ozcelikors | 1b914a7 | 2017-10-11 16:15:05 +0200 | [diff] [blame^] | 33 | int handleCode(int code); |
Mustafa Ozcelikors | 34c4b2d | 2017-08-18 11:50:01 +0200 | [diff] [blame] | 34 | |
| 35 | #endif /* HONO_INTERACTION_HONO_INTERACTION_H_ */ |