Device & Asset message simulator

Generates Messages with configurable period. JavaScript function is used for message generation.

Node Configuration:

  • Message generation frequency in seconds

  • Message originator

  • JavaScript function that will generate the actual message.

JavaScript function receive 3 input parameters:

  • prevMsg - is a previously generated Message payload.

  • prevMetadata - is a previously generated Message metadata.

  • prevMsgType - is a previously generated Message type.

Script should return the following structure:

    msg: new payload,
    metadata: new metadata,
    msgType: new msgType 

All fields in resulting object are optional and will be taken from previously generated Message if not specified.

Outbound Message from this Node will be new Message that was constructed using configured JavaScript function.

JavaScript generator function can be verified using Test JavaScript function.

This node can be used for Rule Chain debugging purposes.

Last updated