SlideShare a Scribd company logo
1 of 15
Confidential
www.vitalpointz.net1
Flow Processing
Confidential
www.vitalpointz.net
©2017 , www.vitalpointz.net
vitalpointz IoT Core Lite v1.3 and above
Flow Processing in
vitalpointz IoT Core Lite
Confidential
www.vitalpointz.net
 Flow Processing signifies the processing of messages
received from Devices / Fog Nodes
 In flow processing, users can implement their own
functions, one or more to process the messages.
 Functions are invoked to incoming messages
 Functions can be implemented in two ways
 Using Hosted NodeRED, the built-in NodeRED tool
with vitalpointz helper nodes
 Using Workload Containers
 Deployment of end-to end flow processing in vitalpointz
IoT Core is largely of 2 steps, no specific order
 Specify the function name while Adding Devices
 Define the Function
3
Overview
Confidential
www.vitalpointz.net
Receiving messages from Devices into Function
 Navigate to NodeRED tab, scroll down left-hand
pane
 Under vitalpointz directory, helper nodes are
provided
 Use Service In node and double click to enter
the function names
4
Writing Function in NodeRED – (1)
Double
Click
Function
Name
Confidential
www.vitalpointz.net
Sending a message from a Functions to Devices
 Step1: create a message
 Navigate to NodeRED
 Create a function node with below Code
{
topic:’<device allowed device topic>’,
payload:"Message to be sent to Device”
};
 Wire to vitalpointz Service Out Node
 Provide name & Source name
 Step2: create a Rule to forward the message
to Device
 See Next Slide
5
Writing Function in NodeRED – (2)
Connect
Service-Out
to Function
Node
Write the js
code into
the function
node
Confidential
www.vitalpointz.net
Sending messages from Functions to Devices
 Navigate to Rules Engine, click Add New
Rule
 Select Events to Forward ‘User Defined’
 Enter custom Event = device topic entered in
Node RED function
 Enter Source= Source name entered in Node
RED Service Out Node
 Select Forward to ‘User Defined Service
Name’
 Enter Service name = ‘TO_DEVICE’
6
Writing Function in NodeRED – (2)
Confidential
www.vitalpointz.net
Broadcasting to all Devices/FogNodes
When a function generated event needed to be received by all device or all fog nodes or both, follow
below mentioned procedure
 Step 1: Create a Function that generates message to be broadcasted
 Step 2: Wire it to Service Out Node in NodeRED
 Step 3: Create a Rule to Broadcast
7
Writing Function in NodeRED – (3)
Confidential
www.vitalpointz.net
 Step 1: Create a Function that generates a
message to be broadcasted
 Message must be in JSON format
 Topic: define your own topic, starting with ‘app/abcde’
 Payload: this could be JSON object or a String.
 If payload is a string, all devices and fog nodes will
receive this message as is
 If payload is a JSON object and if a key called
‘broadcast’ is found, the message broadcast can be
controlled
 broadcast:’device’ - forces broadcast service to send
the message only to devices (i.e, No Fog Node will
receive this message)
 broadcast:’fognode’ - forces broadcast service to send
the message only to devices (i.e, no Device will receive
this message)
 If this key is missing or the payload is JSON, the
message is delivered to every device and fog nodes
 Note: The device will receive this message in their
<allowed device topic>/fromcloud
8
Broadcasting
Payload
defined in
the function
Confidential
www.vitalpointz.net
 Step 2: Wire it to Service Out Node in NodeRED
 Double click on Service Out Node,
 Provide any string/name as Source
9
Broadcasting
Confidential
www.vitalpointz.net
 Step 3: Create a Rule to Broadcast
 Navigate to Rules Engine, click ‘Add a
new Rule’
 Select Events to Forward ‘User Defined’
 Enter custom Event = topic entered in
Node RED function e.g, ‘app/abcde’
 Enter Source= Source name entered in
Node RED Service Out Node
 Select Forward to ‘Broadcast Service’
10
Broadcasting
Forward To:
Broadcast
Service
Confidential
www.vitalpointz.net
 Pro
 Easy to write and test a function
 Quick to debug or visualize the device
messages
 User can leverage the community NodeRED
nodes to quickly build dashboards, write
business logics & much more
 Cons
 Hosted NodeRED is not multi-user supported,
this means flows created by one user is visible
to others
 JavaScript is the primary language to develop
over NodeRED
11
Caveats of Hosted NodeRED
 Recommended Best practice
 NodeRED container image identical to in-built
Hosted NodeRED is available in Workload
 By spinning up one or many NodeRED
containers, user can create their own container
to process their data in an isolated manner
 This way multi-user problem can be solved
 User can leverage the community NodeRED
nodes to quickly build dashboards or business
logics etc
Confidential
www.vitalpointz.net
 Functions can be implemented in following
workload containers
 VPZ-nodered
 helloworld-js
 helloworld-py
 Spinning a vpz-nodered workload brings up
another NodeRed instance
 helloworld-js / hellowold-py
 This container implements basic hello world
program that listens on a specific user defined topic
(called Topic In)
 Sends the message back using user defined topic
called Topic Out
 This container also implements a REST server that
listens on 3005 port
 This port runs configuration service
 Configuration service accepts 3 parameters namely
SSH to be enabled or not , Topic IN and Topic Out
 This can be invoked using ‘Configure’ menu item
on workload tab
12
Writing Function in workload containers
Confidential
www.vitalpointz.net
 User can enable SSH access on configure
menu
 Login to container using ‘SSH Access’ menu
item
 User can modify the code, save and commit
as new image
 Then spin up their own container as
production workload
 See quick guide in workload tab from details
13
Writing Function in workload containers
Confidential
www.vitalpointz.net
 Device messages can be connected to a
function in Device Add form
 When a Group of devices is added, all the
messages from the devices will be sent to the
same function
 Navigate to Device Tab, click on Add IoT
Device
 Enter a name of function in Message
Decoder/Processing Function
 Writing Function using
 NodeRED Option: Use Service In Node under
vitalpointz directory, enter the same function
name entered in above step
 Workload option : use helloworld-js/helloworld-
py and enter the same function name in TopicIn
14
Connecting Device to Functions
Confidential
www.vitalpointz.net
©2017 , www.vitalpointz.net
Got a Questions ?
ask in our Slack support channel
search in our community forum community.vitalpointz.com

More Related Content

Similar to 6. flow processing

Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
Positive Hack Days
 
Android intents, notification and broadcast recievers
Android intents, notification and broadcast recieversAndroid intents, notification and broadcast recievers
Android intents, notification and broadcast recievers
Utkarsh Mankad
 
Android service, aidl - day 1
Android service, aidl - day 1Android service, aidl - day 1
Android service, aidl - day 1
Utkarsh Mankad
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
Amit Sharma
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
Amit Sharma
 
04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)
TECOS
 
Mobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfMobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdf
AbdullahMunir32
 

Similar to 6. flow processing (20)

2. workload
2.  workload2.  workload
2. workload
 
Architecture your android_application
Architecture your android_applicationArchitecture your android_application
Architecture your android_application
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Manish Chasta - Securing Android Applications
Manish Chasta - Securing Android ApplicationsManish Chasta - Securing Android Applications
Manish Chasta - Securing Android Applications
 
Android intents, notification and broadcast recievers
Android intents, notification and broadcast recieversAndroid intents, notification and broadcast recievers
Android intents, notification and broadcast recievers
 
Android service, aidl - day 1
Android service, aidl - day 1Android service, aidl - day 1
Android service, aidl - day 1
 
Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...Implementation of Push Notification in React Native Android app using Firebas...
Implementation of Push Notification in React Native Android app using Firebas...
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
 
04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)
 
Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Service
 
Using idoc method in lsmw
Using idoc method in lsmwUsing idoc method in lsmw
Using idoc method in lsmw
 
Components of client server application
Components of client server applicationComponents of client server application
Components of client server application
 
Android Workshop
Android WorkshopAndroid Workshop
Android Workshop
 
Chat application with Azure SignalR Service
Chat application with Azure SignalR ServiceChat application with Azure SignalR Service
Chat application with Azure SignalR Service
 
DotNetNuke
DotNetNukeDotNetNuke
DotNetNuke
 
Chapter 6-Remoting
Chapter 6-RemotingChapter 6-Remoting
Chapter 6-Remoting
 
Data Transfer between activities and Database
Data Transfer between activities and Database Data Transfer between activities and Database
Data Transfer between activities and Database
 
Exercises broadcast receiver,incoming phone call
Exercises broadcast receiver,incoming phone callExercises broadcast receiver,incoming phone call
Exercises broadcast receiver,incoming phone call
 
Mobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdfMobile Application Development -Lecture 09 & 10.pdf
Mobile Application Development -Lecture 09 & 10.pdf
 

Recently uploaded

Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Chandigarh Call girls 9053900678 Call girls in Chandigarh
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
nirzagarg
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
nilamkumrai
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
 
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
( Pune ) VIP Pimpri Chinchwad Call Girls 🎗️ 9352988975 Sizzling | Escorts | G...
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
📱Dehradun Call Girls Service 📱☎️ +91'905,3900,678 ☎️📱 Call Girls In Dehradun 📱
 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 

6. flow processing

  • 2. Confidential www.vitalpointz.net ©2017 , www.vitalpointz.net vitalpointz IoT Core Lite v1.3 and above Flow Processing in vitalpointz IoT Core Lite
  • 3. Confidential www.vitalpointz.net  Flow Processing signifies the processing of messages received from Devices / Fog Nodes  In flow processing, users can implement their own functions, one or more to process the messages.  Functions are invoked to incoming messages  Functions can be implemented in two ways  Using Hosted NodeRED, the built-in NodeRED tool with vitalpointz helper nodes  Using Workload Containers  Deployment of end-to end flow processing in vitalpointz IoT Core is largely of 2 steps, no specific order  Specify the function name while Adding Devices  Define the Function 3 Overview
  • 4. Confidential www.vitalpointz.net Receiving messages from Devices into Function  Navigate to NodeRED tab, scroll down left-hand pane  Under vitalpointz directory, helper nodes are provided  Use Service In node and double click to enter the function names 4 Writing Function in NodeRED – (1) Double Click Function Name
  • 5. Confidential www.vitalpointz.net Sending a message from a Functions to Devices  Step1: create a message  Navigate to NodeRED  Create a function node with below Code { topic:’<device allowed device topic>’, payload:"Message to be sent to Device” };  Wire to vitalpointz Service Out Node  Provide name & Source name  Step2: create a Rule to forward the message to Device  See Next Slide 5 Writing Function in NodeRED – (2) Connect Service-Out to Function Node Write the js code into the function node
  • 6. Confidential www.vitalpointz.net Sending messages from Functions to Devices  Navigate to Rules Engine, click Add New Rule  Select Events to Forward ‘User Defined’  Enter custom Event = device topic entered in Node RED function  Enter Source= Source name entered in Node RED Service Out Node  Select Forward to ‘User Defined Service Name’  Enter Service name = ‘TO_DEVICE’ 6 Writing Function in NodeRED – (2)
  • 7. Confidential www.vitalpointz.net Broadcasting to all Devices/FogNodes When a function generated event needed to be received by all device or all fog nodes or both, follow below mentioned procedure  Step 1: Create a Function that generates message to be broadcasted  Step 2: Wire it to Service Out Node in NodeRED  Step 3: Create a Rule to Broadcast 7 Writing Function in NodeRED – (3)
  • 8. Confidential www.vitalpointz.net  Step 1: Create a Function that generates a message to be broadcasted  Message must be in JSON format  Topic: define your own topic, starting with ‘app/abcde’  Payload: this could be JSON object or a String.  If payload is a string, all devices and fog nodes will receive this message as is  If payload is a JSON object and if a key called ‘broadcast’ is found, the message broadcast can be controlled  broadcast:’device’ - forces broadcast service to send the message only to devices (i.e, No Fog Node will receive this message)  broadcast:’fognode’ - forces broadcast service to send the message only to devices (i.e, no Device will receive this message)  If this key is missing or the payload is JSON, the message is delivered to every device and fog nodes  Note: The device will receive this message in their <allowed device topic>/fromcloud 8 Broadcasting Payload defined in the function
  • 9. Confidential www.vitalpointz.net  Step 2: Wire it to Service Out Node in NodeRED  Double click on Service Out Node,  Provide any string/name as Source 9 Broadcasting
  • 10. Confidential www.vitalpointz.net  Step 3: Create a Rule to Broadcast  Navigate to Rules Engine, click ‘Add a new Rule’  Select Events to Forward ‘User Defined’  Enter custom Event = topic entered in Node RED function e.g, ‘app/abcde’  Enter Source= Source name entered in Node RED Service Out Node  Select Forward to ‘Broadcast Service’ 10 Broadcasting Forward To: Broadcast Service
  • 11. Confidential www.vitalpointz.net  Pro  Easy to write and test a function  Quick to debug or visualize the device messages  User can leverage the community NodeRED nodes to quickly build dashboards, write business logics & much more  Cons  Hosted NodeRED is not multi-user supported, this means flows created by one user is visible to others  JavaScript is the primary language to develop over NodeRED 11 Caveats of Hosted NodeRED  Recommended Best practice  NodeRED container image identical to in-built Hosted NodeRED is available in Workload  By spinning up one or many NodeRED containers, user can create their own container to process their data in an isolated manner  This way multi-user problem can be solved  User can leverage the community NodeRED nodes to quickly build dashboards or business logics etc
  • 12. Confidential www.vitalpointz.net  Functions can be implemented in following workload containers  VPZ-nodered  helloworld-js  helloworld-py  Spinning a vpz-nodered workload brings up another NodeRed instance  helloworld-js / hellowold-py  This container implements basic hello world program that listens on a specific user defined topic (called Topic In)  Sends the message back using user defined topic called Topic Out  This container also implements a REST server that listens on 3005 port  This port runs configuration service  Configuration service accepts 3 parameters namely SSH to be enabled or not , Topic IN and Topic Out  This can be invoked using ‘Configure’ menu item on workload tab 12 Writing Function in workload containers
  • 13. Confidential www.vitalpointz.net  User can enable SSH access on configure menu  Login to container using ‘SSH Access’ menu item  User can modify the code, save and commit as new image  Then spin up their own container as production workload  See quick guide in workload tab from details 13 Writing Function in workload containers
  • 14. Confidential www.vitalpointz.net  Device messages can be connected to a function in Device Add form  When a Group of devices is added, all the messages from the devices will be sent to the same function  Navigate to Device Tab, click on Add IoT Device  Enter a name of function in Message Decoder/Processing Function  Writing Function using  NodeRED Option: Use Service In Node under vitalpointz directory, enter the same function name entered in above step  Workload option : use helloworld-js/helloworld- py and enter the same function name in TopicIn 14 Connecting Device to Functions
  • 15. Confidential www.vitalpointz.net ©2017 , www.vitalpointz.net Got a Questions ? ask in our Slack support channel search in our community forum community.vitalpointz.com