-
Notifications
You must be signed in to change notification settings - Fork 13
/
mos.yml
99 lines (90 loc) · 3.4 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
author: mongoose-os
description: Bluetooth support
type: lib
version: 1.1.0
platforms: [ esp32, esp32c3 ]
sources:
- src
- src/${arch}
includes:
- include
- include/${arch}
config_schema:
- ["bt", "o", {title: "Bluetooth settings"}]
- ["bt.enable", "b", true, {title: "Enable BT"}]
- ["bt.dev_name", "s", "", {title: "Device name; defaults to device.id"}]
- ["bt.adv_enable", "b", true, {title: "Advertise services"}]
- ["bt.scan_rsp_data_hex", "s", "", {title: "Scan response data, hex-encoded"}]
- ["bt.keep_enabled", "b", false, {title: "By default, BT will be disabled once WiFi is configured and connects. Set this to true to keep BT enabled."}]
- ["bt.allow_pairing", "b", true, {title: "Allow pairing/bonding with other devices"}]
- ["bt.max_paired_devices", "i", -1, {title: "Max number of paired devices; -1 - no limit"}]
# TODO: Random address support on NimBLE
- ["bt.random_address", "b", false, {title: "Use random BT address"}]
- ["bt.gatt_mtu", "i", 500, {title: "Local MTU setting, used when negotiating with clients"}]
- ["bt.gatts", "o", {title: "GATTS settings"}]
- ["bt.gatts.min_sec_level", "i", 0, {title: "0 - no auth required, 1 - auth reqd, 2 - auth + encryption reqd, 3 - auth + encryption + MITM reqd"}]
conds:
- when: mos.platform == "esp32"
apply:
sources:
- src/esp32xx
includes:
- include/esp32xx
libs:
- origin: https://github.com/mongoose-os-libs/mbedtls
build_vars:
ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} bt esp_wifi wpa_supplicant"
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
CONFIG_BT_NIMBLE_ROLE_BROADCASTER=y
CONFIG_BT_NIMBLE_ROLE_OBSERVER=y
CONFIG_BT_NIMBLE_ROLE_CENTRAL=y
CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=y
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=7
CONFIG_BT_NIMBLE_DEBUG=n
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=6144
CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM=0
CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN=50
CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS=y
CONFIG_BTDM_CTRL_HLI=n
cdefs:
MYNEWT_VAL_BLE_HS_AUTO_START: 0
- when: mos.platform == "esp32c3"
apply:
sources:
- src/esp32xx
includes:
- include/esp32xx
libs:
- origin: https://github.com/mongoose-os-libs/mbedtls
build_vars:
ESP_IDF_EXTRA_COMPONENTS: "${build_vars.ESP_IDF_EXTRA_COMPONENTS} bt"
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
CONFIG_BT_NIMBLE_ROLE_BROADCASTER=y
CONFIG_BT_NIMBLE_ROLE_OBSERVER=y
CONFIG_BT_NIMBLE_ROLE_CENTRAL=y
CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=y
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=7
CONFIG_BT_NIMBLE_DEBUG=n
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=6144
CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM=0
CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN=50
CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS=y
CONFIG_BTDM_CTRL_HLI=n
cdefs:
MYNEWT_VAL_BLE_HS_AUTO_START: 0
tags:
- bt
- bluetooth
- c
- net
- docs:net:BLE
manifest_version: 2017-09-29
# Temporary, while root manifest change propagates (2018/03/29).
libs:
- location: https://github.com/mongoose-os-libs/core