Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sparkplug-dev] Device creation

Thanks for reaching out.

I'm not completely clear about your implementation.

The specification specifies the MQTT topic for the device command (DCMD). The topic has the form of
spBv1.0/group_id/DCMD/edge_node_id/device_id

The node and device birth certificates contain all the metrics that the edge node will publish. If you wanted a "special" function, this would have to be referenced through the data of a metric that is published in the birth certificate. The host does not arbitrarily create new metrics for the node or device.

If you need a special function metric, it could be of type string. The string written from host to edge could contain the information required. The result of the operation could be the metric's state reported to the host.



On Thu, Dec 21, 2023 at 5:10 AM Millieret, Xavier via sparkplug-dev <sparkplug-dev@xxxxxxxxxxx> wrote:
Hi SparkPlug team,
 
I am new on SparkPlug, and after reading the specification, I have some questions to implement my feature.
The question for is:
I must have some CRUD function for a device in my system, the main question is how pass the verb in the SP payload 
  • Either in the topic name for example spBv1.0/<groupe/DCMD/<edge_node_id>/<verbe-like-create-read-etc>, and in metric all information to create the device?
  • Either in the metric payload, and put in the body all information to create the device?
  • Either in the metric payload, and put all information to create the device inside properties attached at this metric?
  • How to return the result of the CRUD command

    All of them scenario works, but I don't know the right way to do this feature, so any help on this part will be appreciate

    Thanks a lot
Xavier Millieret
Eaton
 
 
 
_______________________________________________
sparkplug-dev mailing list
sparkplug-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sparkplug-dev

Back to the top