kubeedge / kubeedge

Kubernetes Native Edge Computing Framework (project under CNCF)
https://kubeedge.io
Apache License 2.0
6.51k stars 1.68k forks source link

[OSPP] Provide A Common MQTT Mapper #5588

Open WillardHu opened 1 month ago

WillardHu commented 1 month ago

What would you like to be added/modified:

Why is this needed:

The MQTT protocol is the common device protocol in most device hardware markets. We want to have a common MQTT Mapper to handle these devices using the MQTT protocol, and it can support getting attribute values from the common serialization methods(i.e. json, yaml and xml). In order to fulfill the above requirements, we need you to complete these tasks:

  1. We expect you to use the latest mapper-framework to add a Mapper for MQTT protocol to the project kubeedge/mappers-go;
  2. We expect this Mapper can read the message from the topic of the specified MQTT service, And the attribute value can be parsed from the message by common serialization methods (i.e. json and xml);
  3. (Optional)We expect you to provide a more scalable solution to parse attribute values from more custom messages;

Refer: