Skip to main content
Version: V2 (Ignition 8.1)

system.mes.meter.flushMeterDataStateToDB

Description​

Flushes all in-memory meter data collection state to the database immediately. This is a system management function that ensures all pending metering data is persisted without waiting for the next scheduled flush.

Permissions​

This method requires the METERING.WRITE.SAVE permission.

Syntax​

system.mes.meter.flushMeterDataStateToDB()

Parameters​

This method does not take any parameters.

Returns​

This method does not return anything.

Code Examples​

# Flush all in-memory meter data state to the database
system.mes.meter.flushMeterDataStateToDB()