Skip to content

Commit

Permalink
Merge pull request #106 from harlem88/fix-readme-registry
Browse files Browse the repository at this point in the history
Improve support for ESP Component Registry
  • Loading branch information
sorru94 authored Sep 6, 2024
2 parents aabf9a0 + 7672988 commit 6671249
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 35 deletions.
35 changes: 8 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,15 @@ Follow the
### 2 - Install the IDF-Component Manager

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

### 3 - Setup a New Project

Create a new CMake project:
### 3 - Create a New Project from the edgehog_app example

```bash
mkdir ~/hello_world
cd ~/hello_world
cp -r $IDF_PATH/examples/get-started/hello_world .
```

### 4 - Setup Dependencies

Create a new `idf_component.yml` in the project root directory, as follows:

```yaml
## IDF Component Manager Manifest File
dependencies:
idf:
version: ">=4.4.4"
edgehog-esp32-device:
version: "*" # this is the latest commit on the main branch
git: https://github.com/edgehog-device-manager/edgehog-esp32-device.git
astarte-device-sdk-esp32:
version: "b47e453777f774835b3f86eeb0ce5d3b3a890c9c" # 'release-1.0' branch
git: https://github.com/astarte-platform/astarte-device-sdk-esp32.git

idf.py create-project-from-example "edgehog-device-manager/edgehog-esp32-device^0.8.0:edgehog_app"
```

### 5 - Build project
### 4 - Build project

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

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

## Contributing

Expand Down
9 changes: 1 addition & 8 deletions examples/edgehog_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@

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

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

### Setup project using git

* Add Astarte component

``` bash
git clone https://github.com/astarte-platform/astarte-device-sdk-esp32.git -b release-1.0 ./components/astarte-device-sdk-esp32
```
### Configure the project

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

0 comments on commit 6671249

Please sign in to comment.