In this quick tutorial, we will cover “Working with the Log Message Node”. This video goes through a step-by-step guide on how to implement your own flow that logs content onto the Bitcoin Blockchain.
In this video we will cover:
Prerequisite
Thank you for watching Working with the Log Message Node in the Catenis Flow tutorial series. Watch the next video, Understanding the Retrieve Message Container Node, to further expand your knowledge.
Links from this video for easy access:
To sign up for your free account, head to our website www.blockchainofthings.com.
Join our community forum for the quickest response time to all your questions and concerns. This forum is our customer support. https://forum.blockchainofthings.com
[Music]
Hi, this is Clara for Blockchain of Things.
Today, we will learn how to create a flow
that uses a Log Message Node.
With Node-RED open in your browser,
drag-and-drop a Log Message Node from the Catenis Flow palette
into the Node-RED workspace.
Double-click it to display its properties slide-out panel.
On the device drop-down field of the properties slide-out panel,
choose the Catenis Virtual Device you previously configured.
Add the node’s configuration information based on your needs to each field of the properties slide-out panel.
You can pause the video to do this now.
Please refer to the description of each field under the section named “Node Properties Panel” field description
or check out the previous video titled
“Understanding the Log Message Node”
for information on proper usage.
Now, click the done button.
Now, drag a Debug Node into the workspace.
Wire the Log Message Node to the Debug Node.
Next, drag and drop an Inject Node to the Node-RED workspace.
Wire the Inject Node to the Log Message Node.
Then, double-click the Inject Node to open its properties slide-out panel.
Alter the information in the Inject Node’s properties slide-out panel by selecting the drop-down payload field and choose the JSON type.
An ellipse button will appear to the right of the field.
Click the ellipse button to display a JSON edit box.
Enter the JSON information you wish to pass as input
to the Catenis Node.
For example, something like this:
Click the done button.
Click the done button again to exit the properties dialog box,
then click deploy.
Now, let’s test the flow.
Click the button on the left of the Inject Node to send the input from the Inject Node through the flow.
Note, that inputs injected into this node via
a JSON object containing alternate node properties
will override the properties set on this
node’s slideout properties panel.
The debug sidebar should display the returned JSON object containing the API call results to the right side of the workspace.
Great!
In our next video, you’ll learn how to use the Retrieve Message Container Node.
[Music]