Living the dream, implementing NEM Catapult with LoRa XD This repository is about RFID info transaction via LoRa nodes using NEM Catapult Mosaics Transaction
- Folder nem message contains code for receiving and sending message via NEM Blockchain
- Folder nem multisignature contains code for multisignature account transactions, still in development.
- Folder node_modules should not be touched as it contains js libraries.
- Folder RFIDRead reads the ID of a card and serial writes it out to another Arduino due to insufficient pins for RFID + LoRa Configuration.
- Folder SerialRead reads serial from another arduino and attempts to send a LoRa message to Raspberry Pi.
- Folder server is for default testing between Folder client.
- main.py, the main code to be run on the raspberry pi.
- transfer.js, executed by main.py via shell to transfer mosaics to the blockchain.
#Libraries for the Arduino
- https://github.com/CytronTechnologies/RadioHead for the LoRa Shield to work.
- https://github.com/miguelbalboa/rfid/archive/master.zip for the RFID hardware to work.
- Download the zip code of this file, then extract it.
- Alternatively you can fork this project and open in Visual Studios and use the Team Explorer in Visual Studios to help you clone the entire project.
- Open the folder and open a command prompt, and type npm install.
- Once finished, open the folder with Visual Studio Code / Arduino depending on the file.
- main.py is executed on the raspberry pi by typing in the terminal python main.py, make sure transfer.js is in the same directory.
- RFIDRead.ino is uploaded to Arduino with RFID hardware, SerialRead.ino is uploaded to Arduino with LoRa hardware, both are connected TX to RX.
- server.ino is uploaded to Arduino with LoRa hardware connected with a USB port to Raspberry Pi.
- Use case of LoRa + Blockchain, need ideas, feel free to open an issue about it.
- Attempting to implement NEM Catapult docker, but so far docker-compose library is not supported.
#HAPPY CODING!!! ❤️