MQTree: Secure OTA Protocol using MQTT and MerkleTree
sudo apt-get update
sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients
sudo systemctl start mosquittoStart by downloading and installing the latest version of Arduino CLI with the following command:
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | shAfter installation, add Arduino CLI to your system's path to make it accessible from any terminal session:
cd bin/
sudo cp arduino-cli /usr/local/bin/Verify Installation: To ensure that Arduino CLI is installed correctly, run the following command:
arduino-cli versionInitialization: Initialize Arduino CLI to create a default configuration file. This step is essential for first-time setup:
arduino-cli config initInstall the necessary core to use common boards like Uno or Mega:
arduino-cli core install arduino:avrThis command updates the list of available boards and cores:
arduino-cli core update-indexFor projects that require the megaAVR architecture (e.g., "Arduino Uno WiFi Rev2"), install the megaAVR core:
arduino-cli core install arduino:megaavrVerify that the core installation was successful:
arduino-cli core listClone your project repository and navigate to the relevant directory:
git clone https://github.com/SYunje/MQTree.git
cd ./MQTree/InVehicleGive execution permissions to your environment setup script and run it:
chmod +x setup_environment.sh
./setup_environment.shIf you encounter errors, it might be due to Windows line endings. Correct this issue by running:
sed -i 's/\r$//' setup_environment.shpython3 MQTree.pyThis project is licensed under the MIT License with Commons Clause – No Commercial Educational Use.
You are free to use, modify, and distribute this software non-commercially.
Commercial and monetized use is strictly prohibited.
Please contact the author for commercial licensing.