Install ESP-IDF v5.1.4, then for each static scanner you want to place:
. ~/esp-idf/export.sh
esp32/
, e.g. cd esp32/
idf.py menuconfig
(Component config -> App Configuration -> ...)idf.py build
idf.py flash
idf.py monitor
, you should see it connect to WiFi and then continuously scan for devicesThe scanners will then broadcast a UTF-8 encoded packet for every device they pick up in the form:
ble,scanner_id=...,manufacturer_data=0x...,rssi=...
Make sure you have nodejs installed, then in the project directory:
app/example.env
to app/.env
and fill in the MAPKIT_TOKEN
with an Apple MapKit JS JWT./bin/package.sh
tritest_build.zip
to wherever you're hosting the serverOn the server:
python3
and python3-flask
, e.g. sudo apt install python3 python3-flask
tritest_build.zip
, e.g. unzip tritest_build.zip
serve.py
to bind to the desired port, then run python3 serve.py
in the extracted directory (e.g. in a screen session or a systemctl
service)