Wirepas SDK
control_node.h
Go to the documentation of this file.
1 /* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 #ifndef _CONTROL_NODE_H_
7 #define _CONTROL_NODE_H_
8 
9 #include "control_node_int.h"
10 #include "api.h"
11 
21 typedef void (*control_node_ack_cb_f)(uint8_t * bytes, uint8_t len);
22 
26 typedef struct
27 {
32  uint32_t diag_period_ms;
36  uint32_t packet_ttl_ms;
40 
49 
62 
63 #endif //_CONTROL_NODE_H_
control_node_int.h
control_node_ack_cb_f
void(* control_node_ack_cb_f)(uint8_t *bytes, uint8_t len)
Callback function type used with lib_control_node_conf_t.
Definition: control_node.h:21
app_lib_data_data_sent_cb_f
void(* app_lib_data_data_sent_cb_f)(const app_lib_data_sent_status_t *status)
Sent packet tracking callback.
Definition: wms_data.h:420
control_node_conf_t
Configuration structure for Control node.
Definition: control_node.h:26
Control_Node_init
control_node_ret_e Control_Node_init(control_node_conf_t *conf)
Initialize Directed Advertiser libray for control node.
app_lib_data_to_send_t
A struct for lib_data->sendData().
Definition: wms_data.h:331
control_node_conf_t::packet_ttl_ms
uint32_t packet_ttl_ms
Definition: control_node.h:36
control_node_conf_t::ack_cb
control_node_ack_cb_f ack_cb
Definition: control_node.h:38
Control_Node_send
control_node_ret_e Control_Node_send(app_lib_data_to_send_t *data, app_lib_data_data_sent_cb_f sent_cb)
Send a data packet.
control_node_conf_t::diag_period_ms
uint32_t diag_period_ms
Definition: control_node.h:32
control_node_ret_e
control_node_ret_e
Return codes of control functions.
Definition: control_node_int.h:21
api.h