Payload

struct Payload

Payload for the EVNotDetectedEvent.

  • The current value of the EnergyEvseTrait/Attributes/sessionId attribute.

    Declaration

    Swift

    let sessionID: UInt32?
  • The value of the state attribute prior to the electric vehicle not being detected.

    Declaration

    Swift

    let state: Matter.EnergyEvseTrait.StateEnum?
  • The total duration of the session, from when the electric vehicle was plugged in until it was unplugged.

    Declaration

    Swift

    let sessionDuration: UInt32?
  • The total amount of energy transferred from the EVSE to the electric vehicle during the session. This value is always a positive number.

    Declaration

    Swift

    let sessionEnergyCharged: Int64?
  • The total amount of energy transferred from the electric vehicle to the EVSE during the session. This value is always a positive number.

    Declaration

    Swift

    let sessionEnergyDischarged: Int64?
  • A textual representation of this instance, suitable for debugging.

    Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the String(reflecting:) initializer. This initializer works with any type, and uses the custom debugDescription property for types that conform to CustomDebugStringConvertible:

    struct Point: CustomDebugStringConvertible {
        let x: Int, y: Int
    
        var debugDescription: String {
            return "(\(x), \(y))"
        }
    }
    
    let p = Point(x: 21, y: 30)
    let s = String(reflecting: p)
    print(s)
    // Prints "(21, 30)"
    

    The conversion of p to a string in the assignment to s uses the Point type’s debugDescription property.

    Declaration

    Swift

    var debugDescription: String { get }