interface Device {
    allowInsecure: boolean;
    allowMultipleConnections: boolean;
    createdAt?: Date;
    description: string;
    hasCustomCertificate: boolean;
    hubId: string;
    id: string;
    isConnected: boolean;
    lastActivityAt?: Date;
    messageFilters?: DeviceMessageFilters;
    name: string;
    status: DeviceStatus;
    updatedAt?: Date;
}

Properties

allowInsecure: boolean

Defines whether to allow the device to connect to the Hub without TLS mutual authentication.

allowMultipleConnections: boolean

Defines whether to allow multiple physical devices to connect to the Hub with this device's credentials.

createdAt?: Date

Date at which the device was added.

description: string

Device description.

hasCustomCertificate: boolean

Assigning a custom certificate allows a device to authenticate using that specific certificate without checking the Hub's CA certificate.

hubId: string

Hub ID.

id: string

Device ID, also used as MQTT Client ID or username.

isConnected: boolean

Defines whether the device is connected to the Hub.

lastActivityAt?: Date

Last connection/activity date of a device.

messageFilters?: DeviceMessageFilters

Filter-sets to restrict the topics the device can publish/subscribe to.

name: string

Device name.

status: DeviceStatus

Device status.

updatedAt?: Date

Date at which the device was last modified.