system.kanoa.event.getPreviousStateEvent(assetId, tStamp)
Gets the previous stateEvent entry for the assetId, tStamp passed
Parameters
assetId Integer
tStamp DateTime
Returns
stateEventData pyDataset
Example
assetId = 123
tStamp = system.date.now()
stateEventData = system.kanoa.event.getPreviousStateEvent(assetId, tStamp)