@@ -45,35 +45,35 @@ To use the components in this repository, you have a few options:
45
45
For example, if you want to use the ` task ` component and the
46
46
` ble_gatt_server ` components, you could run:
47
47
48
- ``` console
49
- idf.py add-dependency "esp-cpp/task^0.21.0"
50
- idf.py add-dependency "esp-cpp/ble_gatt_server^0.21.0"
51
- ```
48
+ ``` console
49
+ idf.py add-dependency "esp-cpp/task^0.21.0"
50
+ idf.py add-dependency "esp-cpp/ble_gatt_server^0.21.0"
51
+ ```
52
52
53
53
Alternatively, you could add the following dependencies to your
54
54
`main/idf_component.yml`:
55
55
56
- ``` yaml
57
- dependencies :
58
- esp-cpp/ble_gatt_server :
59
- version : ' >=0.21.0'
60
- esp-cpp/task :
61
- version : ' >=0.21.0'
62
- # other dependencies here...
63
- ```
56
+ ```yaml
57
+ dependencies:
58
+ esp-cpp/ble_gatt_server:
59
+ version: '>=0.21.0'
60
+ esp-cpp/task:
61
+ version: '>=0.21.0'
62
+ # other dependencies here...
63
+ ```
64
64
65
65
1. If you have an existing project with a `components` directory, then you can
66
66
clone `espp` as a submodule within that directory e.g. `git submodule add
67
67
https://github.com/esp-cpp/espp components/espp`, then make sure to run `git
68
68
submodule update --init --recursive`. Afterwards, simply update your
69
69
`CMakeLists.txt` to add
70
70
71
- ``` cmake
72
- # add the component directories that we want to use
73
- set(EXTRA_COMPONENT_DIRS
74
- "components/espp/components"
75
- )
76
- ```
71
+ ```cmake
72
+ # add the component directories that we want to use
73
+ set(EXTRA_COMPONENT_DIRS
74
+ "components/espp/components"
75
+ )
76
+ ```
77
77
78
78
1. You can clone espp somewhere on your computer and then point your project to
79
79
its `components` directory to use any of the components it contains, similar
0 commit comments