Enum
public enum ResponseCode
Namespace: SharpMeter.Core.Protocol
ANSI C12.18 Layer 7 response codes returned by the meter.
Fields
| Name | Description |
|---|---|
DataLocked static |
Data is locked — cannot access. |
DataNotReady static |
Data not ready yet. |
DeviceBusy static |
Device is busy — retry later. |
Error static |
Unspecified error. |
InappropriateAction static |
Inappropriate action requested. |
InsufficientSecurityClearance static |
Insufficient security clearance for the requested operation. |
InvalidServiceSequenceState static |
Invalid service sequence state. |
Ok static |
No error — operation succeeded. |
OperationNotPossible static |
Operation not possible in the current state. |
Renegotiate static |
Renegotiate the session parameters. |
ServiceNotSupported static |
Service not supported by this meter. |
DataLocked
DataLocked = 8
Data is locked — cannot access.
DataNotReady
DataNotReady = 7
Data not ready yet.
DeviceBusy
DeviceBusy = 6
Device is busy — retry later.
Error
Error = 1
Unspecified error.
InappropriateAction
InappropriateAction = 5
Inappropriate action requested.
InsufficientSecurityClearance
InsufficientSecurityClearance = 3
Insufficient security clearance for the requested operation.
InvalidServiceSequenceState
InvalidServiceSequenceState = 10
Invalid service sequence state.
Ok
Ok = 0
No error — operation succeeded.
OperationNotPossible
OperationNotPossible = 4
Operation not possible in the current state.
Renegotiate
Renegotiate = 9
Renegotiate the session parameters.
ServiceNotSupported
ServiceNotSupported = 2
Service not supported by this meter.
View Source
/// <summary>
/// ANSI C12.18 Layer 7 response codes returned by the meter.
/// </summary>
[SuppressMessage("Design", "CA1028:Enum storage should be Int32", Justification = "Wire protocol requires byte for binary serialization.")]
public enum ResponseCode : byte
{
/// <summary>No error — operation succeeded.</summary>
Ok = 0x00,
/// <summary>Unspecified error.</summary>
Error = 0x01,
/// <summary>Service not supported by this meter.</summary>
ServiceNotSupported = 0x02,
/// <summary>Insufficient security clearance for the requested operation.</summary>
InsufficientSecurityClearance = 0x03,
/// <summary>Operation not possible in the current state.</summary>
OperationNotPossible = 0x04,
/// <summary>Inappropriate action requested.</summary>
InappropriateAction = 0x05,
/// <summary>Device is busy — retry later.</summary>
DeviceBusy = 0x06,
/// <summary>Data not ready yet.</summary>
DataNotReady = 0x07,
/// <summary>Data is locked — cannot access.</summary>
DataLocked = 0x08,
/// <summary>Renegotiate the session parameters.</summary>
Renegotiate = 0x09,
/// <summary>Invalid service sequence state.</summary>
InvalidServiceSequenceState = 0x0A
}