Docsity

NodeRED Installation Guide, Study Guides, Projects, Research of Computer Science

Partial preview of the text

Download NodeRED Installation Guide and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Run Setup

Next on all screens

Again

Relax it will take Time

DO NOT close this window

// Create a Date object from the payload

var date = new Date(msg.payload);

// Change the payload to be a formatted Date string

msg.payload = date.toString();

// Return the message so it can be sent on

return msg;

Double-click on the Function node to bring up the edit

dialog. Copy the following code into the function field:

Publisher

MQTT Server (Broker)

Subscriber

Add Nodes Double Click

Set any

Name

Notice the

Name

Changed

Remember

Port number