blob: c3c636394177dfe8ac4156529a2967f5dde7e87d [file] [log] [blame]
* Copyright (c) 2016, CESAR.
* All rights reserved.
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
#ifdef __cplusplus
extern "C" {
#include "knot_protocol.h"
typedef int (*data_function)(uint8_t sensor_id, knot_msg_data *data);
typedef int (*schema_function)(uint8_t sensor_id, knot_msg_schema *schema);
typedef int (*config_function)(uint8_t sensor_id, uint8_t event_flags,
uint16_t time_sec, knot_value_types *lower_limit,
knot_value_types *upper_limit);
typedef int (*events_function)(knot_msg_data *data);
int knot_thing_protocol_init(const char *thing_name);
void knot_thing_protocol_exit(void);
int knot_thing_protocol_run(void);
#ifdef __cplusplus
#endif /* __KNOT_THING_PROTOCOL_H__ */