Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sparkplug-wg] Sparkplug - Historic Data flag query

Hello Vimal,

The isHistorical flag is used to indicate to the host application that the specific metric is not current state data but one that was stored or cached at the edge node at some time in the past.

The implementation allows the host application to effectively "recover" data that normally would be lost due to a communication outage between the host application and the MQTT Server.

In your edge node implementation, you could have a situation where your application is detecting data changes (from the node and device implementation) and is not connected to an MQTT Server. In this situation your application may store these data changes and the timestamp of the change so when the connection is restored, this older data may be provided to the host.

When creating the NDATA and DDATA metric updates, use the timestamp when the change was detected and set the isHistorical flag.

When the host receives NDATA and DDATA updates and detects a true isHistorical, the host uses the timestamp of the metric to know the date at which the change occurred.

Bryce

On Wed, Oct 5, 2022 at 11:03 PM Vimal Venu <vimal.menon@xxxxxxxxxxxxxxxxxxx> wrote:

Hi,

 

We have implemented the MQTT sparkplug protocol on our controllers and it is running smoothly.

 

Presently, we have a customer who is looking for the “Historical Data” flag in sparkplug.

 

Our earlier implementation of Sparkplug protocol did not use the Historical Data.

 

We wanted to understand how the Historical Data flag is to used.

 

Can this be given as user selectable and set as True as False while configuring the topics?

 

Or do we need to check the controller connection status and update this flag in the Payload as per the connection status?

 

Thanks,

Vimal

_______________________________________________
sparkplug-wg mailing list
sparkplug-wg@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sparkplug-wg

Back to the top