finish with rumqtt

This commit is contained in:
Romulus21
2024-02-17 23:25:21 +01:00
parent 664e57cead
commit 23f53d39a2
7 changed files with 528 additions and 194 deletions

View File

@@ -1,5 +1,14 @@
git pull origin master
cargo build --release
cp target/release/device /home/pi/Scripts/
rsync -avz target/release/device raspigladys:/home/pi/Scripts/
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
readonly TARGET_HOST=raspitop
readonly TARGET_PATH=/home/pi/Scripts/device
readonly TARGET_ARCH=armv7-unknown-linux-gnueabihf
readonly SOURCE_PATH=./target/${TARGET_ARCH}/release/rust_device
cargo build --release --target=${TARGET_ARCH}
scp ${SOURCE_PATH} ${TARGET_HOST}:${TARGET_PATH}