Skip to main content
Version: Streamsheets 3.0

SPARKPLUG.DECODE

Premium

Decodes a Sparkplug B message. For decoding the Payload type of this Protobuf file is used. Visit https://sparkplug.eclipse.org/specification/ to learn more about Sparkplug.

Syntax

=SPARKPLUG.DECODE(Message, [Target])

Arguments

NameTypeDescription
MessageStringThe message as buffer to decode. The message is decoded using the "Payload" type of this Protobuf file
Target (optional)TargetThe target where to write the result to

Return

TypeDescription
StringThe decoded Sparkplug B message

Examples

FormulaResultComment
=SPARKPLUG.DECODE(INBOXDATA.data, INBOX("Sheet1"))
The decoded messageDecode the message in the inbox and write the decoded message to the inbox of "Sheet1"