This FB should form the basis for every Sparkplug B Node.
There can be several Sparkplug B Nodes in a network.
Every Sparkplug B Node can have any number of devices (0..N), but the Node itself is singular.
It bridges between the MQTT Broker and device(s), sensor(s) and IO(s)
An implementation can be made after the IEC "Google Protobufs' ticket has been Addressed.
Suggestions for a lean and mean but proper readable implementation are welcome.
I'd suggest we try to follow/translate a library example provided by SparkplugB.
FB_EoN_Node FB_Init() Initialise() onConnect() onMessage() publishBirth() publishDeviceBirth() publishNodeBirth() SessionState()
Diff:
Diff:
Diff:
Implemented "PublishState" statemachine
This ticket is sufficiently closed
Any bugs will get a separate ticket.