Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
nimble_autoconn_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef NIMBLE_AUTOCONN_PARAMS_H
20
#define NIMBLE_AUTOCONN_PARAMS_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#ifndef NIMBLE_AUTOCONN_PERIOD_SCAN_MS
31
#define NIMBLE_AUTOCONN_PERIOD_SCAN_MS (2000U)
/* 2s */
32
#endif
33
#ifndef NIMBLE_AUTOCONN_PERIOD_ADV_MS
34
#define NIMBLE_AUTOCONN_PERIOD_ADV_MS (10000U)
/* 10s */
35
#endif
36
#ifndef NIMBLE_AUTOCONN_PERIOD_JITTER_MS
37
#define NIMBLE_AUTOCONN_PERIOD_JITTER_MS (5000U)
/* 0-5s */
38
#endif
39
40
#ifndef NIMBLE_AUTOCONN_ADV_ITVL_MS
41
#define NIMBLE_AUTOCONN_ADV_ITVL_MS (100U)
/* 100ms */
42
#endif
43
44
#ifndef NIMBLE_AUTOCONN_SCAN_ITVL_MS
45
#define NIMBLE_AUTOCONN_SCAN_ITVL_MS (1500U)
/* 1.5s */
46
#endif
47
#ifndef NIMBLE_AUTOCONN_SCAN_WIN_MS
48
#define NIMBLE_AUTOCONN_SCAN_WIN_MS (110U)
/* 110ms */
49
#endif
50
51
#ifndef NIMBLE_AUTOCONN_CONN_TIMEOUT_MS
52
#define NIMBLE_AUTOCONN_CONN_TIMEOUT_MS (3 * NIMBLE_AUTOCONN_SCAN_WIN_MS)
53
#endif
54
#ifndef NIMBLE_AUTOCONN_CONN_ITVL_MS
55
#define NIMBLE_AUTOCONN_CONN_ITVL_MS (75U)
/* 75ms */
56
#endif
57
#ifndef NIMBLE_AUTOCONN_CONN_LATENCY
58
#define NIMBLE_AUTOCONN_CONN_LATENCY (0)
59
#endif
60
#ifndef NIMBLE_AUTOCONN_CONN_SVTO_MS
61
#define NIMBLE_AUTOCONN_CONN_SVTO_MS (2500U)
/* 2.5s */
62
#endif
63
64
#ifndef NIMBLE_AUTOCONN_NODE_ID
65
#define NIMBLE_AUTOCONN_NODE_ID "RIOT-autoconn"
66
#endif
67
68
#ifndef NIMBLE_AUTOCONN_PARAMS
69
#define NIMBLE_AUTOCONN_PARAMS \
70
{ .period_scan = NIMBLE_AUTOCONN_PERIOD_SCAN_MS, \
71
.period_adv = NIMBLE_AUTOCONN_PERIOD_ADV_MS, \
72
.period_jitter = NIMBLE_AUTOCONN_PERIOD_JITTER_MS, \
73
.adv_itvl = NIMBLE_AUTOCONN_ADV_ITVL_MS, \
74
.scan_itvl = NIMBLE_AUTOCONN_SCAN_ITVL_MS, \
75
.scan_win = NIMBLE_AUTOCONN_SCAN_WIN_MS, \
76
.conn_timeout = NIMBLE_AUTOCONN_CONN_TIMEOUT_MS, \
77
.conn_itvl = NIMBLE_AUTOCONN_CONN_ITVL_MS, \
78
.conn_latency = NIMBLE_AUTOCONN_CONN_LATENCY, \
79
.conn_super_to = NIMBLE_AUTOCONN_CONN_SVTO_MS, \
80
.node_id = NIMBLE_AUTOCONN_NODE_ID, }
81
#endif
82
87
static
const
nimble_autoconn_params_t
nimble_autoconn_params
=
88
NIMBLE_AUTOCONN_PARAMS;
89
90
#ifdef __cplusplus
91
}
92
#endif
93
94
#endif
/* NIMBLE_AUTOCONN_PARAMS_H */
95
nimble_autoconn_params
static const nimble_autoconn_params_t nimble_autoconn_params
nimble_netif_autoconn configuration
Definition:
nimble_autoconn_params.h:87
nimble_autoconn_params_t
Set of configuration parameters needed to run autoconn.
Definition:
nimble_autoconn.h:132
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17