Creating the IoT part of the solution
After defining the entire blockchain network and getting everything up and running, we will now set up and develop the device that's going to update the ledger with box and pallet measurements.
To complete that, we're going to create a new device, using the same approach as Chapter 2, Creating Your First IoT Solution, and create an application that receives events from measurements and updates the blockchain ledger using the API that was exposed by the Composer REST server.
Hardware setup
To assemble this monitoring device, we will apply a couple of assumptions that might be pertinent to a production environment:
- The transporting vehicle has a Wi-Fi connection available so that the device can connect to the internet
- The monitoring device time is synchronized with the application time, including the time zone
- All boxes are transported at the same time, using the same vehicle, so that the same conditions and measurements apply to all boxes in a pallet
In a production...