Skip to content

krvarma/node-red-contrib-sparkcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

node-red-contrib-sparkcore

Node-RED node to connect to Spark Core. This can be used to connect to Spark Core and call functions, read variables or listen to events.

Intsall

npm install node-red-contrib-sparkcore

Usage

The node implements basic things to interact with Spark Core, such as call a function, read a variable and subscribe to events. This node defines INPUT and OUTPUT nodes. Input node can be used to call a function, read a variable and subscribe to events. The output node can be used to call a function and pass an input parameter. Following are the return values:

Function call

  1. msg.raw contains the raw JSON string returned
  2. msg.payload contains the return value of the function
  3. msg.id contains the core id

Read a Variable

  1. msg.raw contains the raw JSON string returned
  2. msg.payload contains the value of the variable
  3. msg.id contains the core id

Subscribe to variables

  1. msg.raw contains the raw JSON string returned
  2. msg.payload the event data
  3. msg.id contains the core id
  4. msg.published_at contain the published date and time

About

Node-RED node to connect to Spark Core. This can be used to connect to Spark Core and call functions, read variables or listen to events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published