interface DeviceCreateInfoImmutable {
    active?: boolean;
    chunk_period: "day" | "month" | "quarter" | "week";
    chunk_retention: number;
    configuration_params?: ConfigurationParams[];
    connector: string;
    connector_parse?: boolean;
    description?: string;
    name: string;
    network: string;
    parse_function?: string;
    serie_number?: string;
    tags?: TagsObj[];
    type: "immutable";
    visible?: boolean;
}

Hierarchy

Properties

active?: boolean

Set if the device will be active.

chunk_period: "day" | "month" | "quarter" | "week"

Chunk division to retain data in the device.

Required for Immutable devices.

chunk_retention: number

Amount of chunks to retain data according to the chunk_period. Integer between in the range of 0 to 36 (inclusive).

Required for Immutable devices.

configuration_params?: ConfigurationParams[]

An array of configuration params

connector: string

Connector ID.

connector_parse?: boolean

If device will use connector parser

description?: string

Description of the device.

name: string

Device name.

network: string

Network ID.

parse_function?: string

Javascript code for use as payload parser

serie_number?: string

Device serial number.

tags?: TagsObj[]

An array of tags

type: "immutable"
visible?: boolean

Set if the device will be visible.