blob: 1786e3c3ba384d52a75a0d7a427aaf426eee2cb1 [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_type *lower_limit,
knot_value_type *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__ */