In this quick tutorial, we will cover “Working with the Send Message Node”. This video goes through a step-by-step guide on how to implement your own flow that shows you how the Send Message Node functions.
In this video we will cover:
Prerequisite
Thank you for watching Working with the Send Message Node in the Catenis Flow tutorial series. Watch the next video, Understanding the Retrieve Message Progress 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.
In this tutorial, we’ll create a flow containing the Send Message Node.
If you don’t know what a Send Message Node is,
be sure to check out the previous video titled
“Understanding the Send Message Node”.
Then come back to this video.
Ready? Let’s begin!
Drag -and-drop a Send Message Node
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 your Catenis Virtual Device.
Add the node’s configuration information, based on your needs, to each field of the properties slide-out panel.
Drag a Debug Node into the workspace.
Wire the Send Message Node to the Debug Node,
and open the Debug Sidebar.
Next, drag-and-drop an Inject Node into the workspace.
Wire the Inject Node to the Send Message Node.
Then, double-click the Inject Node
to open the properties slide-out panel.
Alter the information in the Inject Node’s properties slide-out panel,
by selecting the drop-down payload field & choose the JSON type.
An ellipse button will appear to the right of the field.
Click this 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:
But using your own target device ID.
Don’t have a target device ID?
You can generate one by following the tutorial found at this link:
Click the done button.
then click the done button again to exit the properties dialog box.
Click the deploy button.
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.
The Debug Sidebars should display the returned JSON object
containing the API call results to the right side of the workspace.
Great work!
Now, that you know how to create a flow
using the Send Message Node,
It’s time to move on to our next tutorial,
where you’ll learn all about the Retrieve Message Progress Node.
[Music]