Skip to content

Commit 6671249

Browse files
authored
Merge pull request #106 from harlem88/fix-readme-registry
Improve support for ESP Component Registry
2 parents aabf9a0 + 7672988 commit 6671249

File tree

2 files changed

+9
-35
lines changed

2 files changed

+9
-35
lines changed

README.md

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,15 @@ Follow the
2020
### 2 - Install the IDF-Component Manager
2121

2222
Follow the
23-
[idf-component manager installation guide](https://github.com/espressif/idf-component-manager#installing-the-idf-component-manager).
23+
[idf-component manager installation guide](https://docs.espressif.com/projects/idf-component-manager/en/latest/).
2424

25-
### 3 - Setup a New Project
26-
27-
Create a new CMake project:
25+
### 3 - Create a New Project from the edgehog_app example
2826

2927
```bash
30-
mkdir ~/hello_world
31-
cd ~/hello_world
32-
cp -r $IDF_PATH/examples/get-started/hello_world .
33-
```
34-
35-
### 4 - Setup Dependencies
36-
37-
Create a new `idf_component.yml` in the project root directory, as follows:
38-
39-
```yaml
40-
## IDF Component Manager Manifest File
41-
dependencies:
42-
idf:
43-
version: ">=4.4.4"
44-
edgehog-esp32-device:
45-
version: "*" # this is the latest commit on the main branch
46-
git: https://github.com/edgehog-device-manager/edgehog-esp32-device.git
47-
astarte-device-sdk-esp32:
48-
version: "b47e453777f774835b3f86eeb0ce5d3b3a890c9c" # 'release-1.0' branch
49-
git: https://github.com/astarte-platform/astarte-device-sdk-esp32.git
50-
28+
idf.py create-project-from-example "edgehog-device-manager/edgehog-esp32-device^0.8.0:edgehog_app"
5129
```
5230

53-
### 5 - Build project
31+
### 4 - Build project
5432

5533
```bash
5634
idf.py build
@@ -92,7 +70,10 @@ with the Free RTOS APIs and its resource usage should be evaluated separately.
9270

9371
* [ESP32 Component Documentation](https://edgehog-device-manager.github.io/docs/snapshot/device-sdks/esp32/)
9472
* [Edgehog documentation](https://edgehog-device-manager.github.io/docs/snapshot/)
95-
* [Example app](examples/edgehog_app/)
73+
* Check out the examples on the right pane of the
74+
[edgehog-esp32-device](https://components.espressif.com/components/edgehog-device-manager/edgehog-esp32-device)
75+
component page or on the
76+
[GitHub repository](https://github.com/edgehog-device-manager/edgehog-esp32-device/tree/main/examples/edgehog_app)
9677

9778
## Contributing
9879

examples/edgehog_app/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,12 @@
1010

1111
### Setup project using idf component manager (recommended)
1212

13-
* [Install the idf-component manager](https://github.com/espressif/idf-component-manager#installing-the-idf-component-manager)
13+
* [Install the idf-component manager](https://docs.espressif.com/projects/idf-component-manager/en/latest/)
1414
* run
1515
```bash
1616
idf.py reconfigure
1717
```
1818

19-
### Setup project using git
20-
21-
* Add Astarte component
22-
23-
``` bash
24-
git clone https://github.com/astarte-platform/astarte-device-sdk-esp32.git -b release-1.0 ./components/astarte-device-sdk-esp32
25-
```
2619
### Configure the project
2720

2821
Open the project configuration menu (`idf.py menuconfig`).

0 commit comments

Comments
 (0)