Book Image

Hands-On IoT Solutions with Blockchain

By : Maximiliano Santos, Enio Moura
Book Image

Hands-On IoT Solutions with Blockchain

By: Maximiliano Santos, Enio Moura

Overview of this book

Blockchain has been the hot topic of late thanks to cryptocurrencies. To make matters more interesting, the financial market is looking for ways to reduce operational costs and generate new business models, and this is where blockchain solutions come into the picture. In addition to this, with Internet of Things (IoT) trending and Arduino, Raspberry Pi, and other devices flooding the market, you can now create cheap devices even at home. Hands-On IoT Solutions with Blockchain starts with an overview of IoT concepts in the current business scenario. It then helps you develop your own device on the IBM Watson IoT platform and create your fi rst IoT solution using Watson and Intel Edison.Once you are familiar with IoT, you will learn about Blockchain technology and its use cases. You will also work with the Hyperledger framework and develop your own Blockchain network. As you progress through the chapters, you'll work with problem statements and learn how to design your solution architecture so that you can create your own integrated Blockchain and IoT solution. The next set of chapters will explain how to implement end-to-end Blockchain solutions with IoT using the IBM Cloud platform. By the end of this book, you will have mastered the convergence of IoT and Blockchain technology and exploited the best practices and drivers to develop a bulletproof integrated solution.
Table of Contents (15 chapters)
Title Page
About Packt

End-to-end testing

For testing purposes, we are going to use the Hyperledger Composer Playground for most of the operations, except transporter updates. So, at this point, you can stop all of the Composer REST servers that were started in the previous section, except the one that was started for the transporter participant (listening on port 3004). 

If your Hyperledger Composer Playground was installed during the development environment setup, all you have to do is run the composer-playground command, or install it using npm (npm install -g composer-playground).

Your default browser will open the Composer-Playground web application, as shown in the following screenshot: 

Composer playground landing page

You can see the same participants that were created earlier. 

Creating a FoodBox

As per the permissions we've granted, factories can create FoodBoxes. Let's see how:

  1. Find the Factory 1 @food-safety-b10407 business card and select the  Connect now option. Then, click on Test at the top left of the...