Output Specification - chrisadie/node-red-contrib-ais-decoder GitHub Wiki

The node-red output messages from node-red-contrib-ais-decoder contain the following properties:

Property Type Description
msg.resultCode Integer The outcome of decoding the input AIS message. Possible values are: 0 (success); 1 (input was blank); 2 (input was non-final part of a message sequence); 3 or above (decode error).
msg.originalAisMessage String array The input AIS message. If the input was a sequence of partial AIS messages, the array elements contain those partial messages. Present if msg.resultCode is 0 or >=3.
msg.errorInfo String The reason for failure. Present if msg.resultCode is >=3.
msg.payload Object The decoded information. Present if msg.resultCode is 0. The object contains a set of ubiquitous properties, and further properties which depend on the type of the input AIS message. See the index of payload properties and the index of AIS message types.