IoT Hub API.

This API allows you to manage your IoT hubs and devices.

Hierarchy

  • API
    • API

Constructors

Properties

LOCALITIES: Region[] = ...

Lists the available regions of the API.

Methods

  • Create a route. Multiple kinds of routes can be created, such as:

    • Database Route Create a route that will record subscribed MQTT messages into your database. You need to manage the database by yourself.
    • REST Route. Create a route that will call a REST API on received subscribed MQTT messages.
    • Amazon S3 Routes. Create a route that will put subscribed MQTT messages into an Object Storage bucket. You need to create the bucket yourself and grant write access. Granting can be done with s3cmd (s3cmd setacl s3://<my-bucket> --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031).

    Parameters

    Returns Promise<IOT.v1.Route>

    A Promise of Route

  • List hubs. List all Hubs in the specified zone. By default, returned Hubs are ordered by creation date in ascending order, though this can be modified via the order_by field.

    Parameters

    Returns Promise<ListHubsResponse> & {
        [asyncIterator]: (() => AsyncGenerator<Hub[], void, void>);
        all: (() => Promise<Hub[]>);
    }

    A Promise of ListHubsResponse