Since TB Version 2.0 |
Transform incoming Message with configured JavaScript function to String and log final value into the Thingsboard log file.
INFO log level is used for logging.
JavaScript function receive 3 input parameters
metadata
- is a Message metadata.msg
- is a Message payload.msgType
- is a Message type.
Script should return String value.
JavaScript transform function can be verified using Test JavaScript function.
You can see the real life example, where this node is used, in the next tutorial: