dt-common-device
Version:
A secure and robust device management library for IoT applications
47 lines (46 loc) • 982 B
TypeScript
export interface IHub {
deviceId: string;
propertyId: string;
name: string;
hubId?: string[];
specifications: {
manufacturer?: string;
model?: string;
firmware?: {
version?: string;
newVersionAvailable?: boolean;
newVersion?: string;
mandatoryUpdate?: boolean;
};
};
protocol: {
location?: {
id?: string;
name?: string;
city?: string;
};
name?: string;
room?: {
id?: string;
name?: string;
};
accountId?: string;
};
deviceType: {
id: string;
type: string;
};
status: {
online: boolean;
error?: {
type?: string;
message?: string;
default?: object;
};
lastUpdated?: Date;
};
state?: object;
metaData?: object;
createdAt?: Date;
updatedAt?: Date;
}