Interface IProtoDeviceProtocol

Namespace
ProtoTest.Devices
Assembly
ProtoTest.Devices.dll

What a transport's messages mean, for tracing and coverage: the protocol's message kinds and how a frame is classified to one of them. The WebSocket backend ships the OCPP subset this way; the coverage collector reports every entry covered or not, so an untested message kind shows as a gap.

public interface IProtoDeviceProtocol
Extension Methods

Properties

Entries

Gets every message kind the protocol supports.

IReadOnlyList<DeviceProtocolEntry> Entries { get; }

Property Value

IReadOnlyList<DeviceProtocolEntry>

Name

Gets the protocol's name, for example "OCPP 1.6J".

string Name { get; }

Property Value

string

Methods

Classify(DeviceFrame)

Classifies a frame to a message kind, or null when it is unknown to this protocol.

string? Classify(DeviceFrame frame)

Parameters

frame DeviceFrame

Returns

string