Skip to content
Start free evaluation

pdcomm_modbus_logging_flush

Function

Waits until queued log records are written to the sink.

int32_t pdcomm_modbus_logging_flush(void)

Declared in: #include <pdcomm/modbus/pdcomm_modbus.h>

Waits at most two seconds. Succeeds immediately when logging is off.

Returns

#PDCOMM_MODBUS_OK, or #PDCOMM_MODBUS_INTERNAL_ERROR when the flush request cannot be queued, the writer does not confirm it within two seconds or the write fails. Write failures and dropped records are counted in the status.