giggetto71 Active Member Licensed User Longtime User Jun 20, 2024 #1 All, I am starting to look into Sparkplug B as I see it growing really fast in the Iot space. https://sparkplug.eclipse.org/specification/version/2.2/documents/sparkplug-specification-2.2.pdf Apparently it's a very nice application layer addition to the MQTT protocol, basically it defines a standard message structure namespace/group_id/message_type/edge_node_id/[device_id] where the message_type is further specified to include a lot of structured info: • NBIRTH – Birth certificate for MQTT EoN nodes. • NDEATH – Death certificate for MQTT EoN nodes. • DBIRTH – Birth certificate for Devices. • DDEATH – Death certificate for Devices. • NDATA – Node data message. • DDATA – Device data message. • NCMD – Node command message. • DCMD – Device command message. • STATE – Critical application state message. Additionally, the Sparkplug B specs relies on google protobuffers to encode and decode the payloads. Now two question 1- is there a B4x mqtt library supporting sparkplug B ? 2- I know very little about google protobuf but I believe are a form of serialization, is there any available implementation of protobuf or examples to do that using B4XSerialiaziation ? any help welcome!!!
All, I am starting to look into Sparkplug B as I see it growing really fast in the Iot space. https://sparkplug.eclipse.org/specification/version/2.2/documents/sparkplug-specification-2.2.pdf Apparently it's a very nice application layer addition to the MQTT protocol, basically it defines a standard message structure namespace/group_id/message_type/edge_node_id/[device_id] where the message_type is further specified to include a lot of structured info: • NBIRTH – Birth certificate for MQTT EoN nodes. • NDEATH – Death certificate for MQTT EoN nodes. • DBIRTH – Birth certificate for Devices. • DDEATH – Death certificate for Devices. • NDATA – Node data message. • DDATA – Device data message. • NCMD – Node command message. • DCMD – Device command message. • STATE – Critical application state message. Additionally, the Sparkplug B specs relies on google protobuffers to encode and decode the payloads. Now two question 1- is there a B4x mqtt library supporting sparkplug B ? 2- I know very little about google protobuf but I believe are a form of serialization, is there any available implementation of protobuf or examples to do that using B4XSerialiaziation ? any help welcome!!!
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2024 #2 B4XSerialization is different than protobuf. Your best option is to find a Java library that creates such messages and integrate it. Upvote 0
B4XSerialization is different than protobuf. Your best option is to find a Java library that creates such messages and integrate it.
P pcicom Member Licensed User Longtime User Jun 22, 2024 #3 You can installa MQTT with LINUX mosquitto, and you can invent you self protocol of code ... Upvote 0