Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mast3rwaf1z authored Nov 6, 2023
1 parent 476997b commit aaa36b5
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
# Building

Configure the project with
```
idf.py menuconfig
# mqtt-esp32
## Dependencies
Arch Linux
```sh
# using yay
yay -S esp-idf
#######################
# the supported way
git clone https://aur.archlinux.org/packages/esp-idf.git
cd esp-idf
makepkg -si
```

Build the project with
```
idf.py build
```
Other Linux:

Flash the project with
Get the dependency using wget, and change any references in `run.sh` or `c_cpp_properties` to the path of this dependency
```sh
# replace with any other release
wget https://github.com/espressif/esp-idf/releases/download/v5.1.1/esp-idf-v5.1.1.zip
unzip esp-idf-v5.1.1.zip
```
idf.py -p <PORT> flash

## Configuration
```sh
source /opt/esp-idf/export.sh # replace with your esp-idf installation path
idf.py menuconfig
```
The configuration contains some custom entries defined in `main/Kconfig.projbuild`. some of the variables defined in here are placeholders and have to be defined before this project can run.

It should now flash SOS on the onboard LED
## Usage
A wrapper script `run.sh` is defined, it builds the project, finds all `ttyUSB#` devices in `/dev` and flashes them, and optionally monitors one of them. This is useful to deploy the software to a fleet of devices in one go
```sh
bash run.sh

0 comments on commit aaa36b5

Please sign in to comment.