- Rust (with armv7-unknown-linux-musleabihf target)
- LLVM
- arm-linux-gnueabihf-binutils
cargo build --bin pirust_pub_weight --target armv7-unknown-linux-musleabihf
cargo run --bin pirust_pub_weight
cargo run --bin pirust_sub_weight
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path
xcode-select --install
brew install arm-linux-gnueabihf-binutils llvm rsync
rustup target add armv7-unknown-linux-musleabihf
We use mosquitto as a MQTT server.
(Skip if you don't need mosquitto CLI tools and want to run it just in Docker.)
brew install mosquitto
docker run -ti -p 1883:1883 -p 91:9001 toke/mosquitto
mosquitto_pub -h ip_or_hostname -p 1883 -m "test message" -t roomId/topicId
mosquitto_sub -h ip_or_hostname -p 1883 -t roomId/topicId