DeviceMessages
Static class in Oadm.Sdk.Devices · Oadm.Sdk.dll
The shared user texts for device problems, so the host and every plugin say the same thing: HTTP errors, timeouts, unreachable devices, a changed certificate and a removed device. Short texts, no trailing period except DeviceMessages.Removed and DeviceMessages.CertificateChanged (full sentences).
public static class DeviceMessagesGuide: Devices and VAPIX
Methods
Section titled “Methods”ForHttpStatus
Section titled “ForHttpStatus”static string? ForHttpStatus(int status)The text of an HTTP error status (400, 401, 403, 404, 5xx), or null for other codes.
Refusal
Section titled “Refusal”static string? Refusal(DeviceStatus status, bool refuseUnreachable = false)Why a device is not contacted, or null when it may be: a changed certificate, rejected credentials or no password yet (nothing is sent to such a device), and with refuseUnreachable a device the polling marked Unreachable (a read that only waits for its timeout).
ServerError
Section titled “ServerError”static string ServerError(int status)“Server error - HTTP 500”.
StatusText
Section titled “StatusText”static string StatusText(DeviceStatus status)The short status name of the device grid: “OK”, “Unreachable”, “Credentials required” …
Timeout
Section titled “Timeout”static string Timeout(TimeSpan timeout)“Timeout after 15 s”.
Unreachable
Section titled “Unreachable”static string Unreachable(string detail)“Unreachable - Connection refused” (a trailing period of the detail is removed).
Fields
Section titled “Fields”BadRequest
Section titled “BadRequest”const string BadRequest = "Bad Request - HTTP 400"HTTP 400.
CertificateChanged
Section titled “CertificateChanged”const string CertificateChanged = "Certificate changed. Remove the device and add it again to trust the new certificate."The device presents another certificate than the one OADM pinned. OADM has no accept action: removing the device and adding it again pins the new certificate.
CredentialsRequired
Section titled “CredentialsRequired”const string CredentialsRequired = "Credentials required - the device rejects the stored credentials"The device rejects the stored login (status Credentials required).
Forbidden
Section titled “Forbidden”const string Forbidden = "Forbidden - HTTP 403 (administrator rights are required)"HTTP 403.
HostUnreachable
Section titled “HostUnreachable”const string HostUnreachable = "Unreachable - no route to the device"No route to the device (host or network unreachable).
NotAnswering
Section titled “NotAnswering”const string NotAnswering = "Unreachable - the device does not answer"“Unreachable - the device does not answer”: a device the polling marked Unreachable, not contacted.
NotFound
Section titled “NotFound”const string NotFound = "Not Found - HTTP 404 (API not available on this firmware)"HTTP 404.
PasswordNotSet
Section titled “PasswordNotSet”const string PasswordNotSet = "Password not set - the device is in factory default"The device has no password yet (status Password not set).
Removed
Section titled “Removed”const string Removed = "The device was removed from OADM."A device that is no longer in the device table.
TimedOut
Section titled “TimedOut”const string TimedOut = "Timeout - the device did not answer in time"A timeout whose length is not known to the caller.
Unauthorized
Section titled “Unauthorized”const string Unauthorized = "Unauthorized - HTTP 401 (check the credentials)"The device refused the login of a request (HTTP 401).