Skip to main content

system.kanoa.event.getPreviousModeEvent

This function requires KanoaOPS module

Description

Returns the modeEvent table entry prior to the passed-in timestamp.

Syntax

getPreviousModeEvent(assetId, tStamp)
  • Parameters
      assetId - Asset ID.
      tStamp (datetime) - Timestamp.
  • Returns
    data (pyDataset).
  • Code Example

    # Example Usage:
    assetId = 123
    tStamp = timestamp
    previousModeEvent = system.kanoa.event.getPreviousModeEvent(assetId, tStamp)