generated from cs-23-sw-7-06/esp32-sos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
476997b
commit aaa36b5
Showing
1 changed file
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |