Skip to content

aws-greengrass/aws-greengrass-stream-manager-sdk-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

AWS Greengrass Stream Manager SDK for JavaScript

The AWS Greengrass Stream Manager SDK for JavaScript enables javascript developers to manage data streams using Stream Manager on AWS IoT Greengrass core.

Overview

This document provides instructions for preparing your JavaScript code to manage Streams in Stream Manager using the JavaScript SDK.

Using Stream Manager Client to work with Streams

Follow the guide here to work with Streams using the Stream Manager Client from the Stream Manager SDK.

Compatibility

Stream Manager SDK provided by this repo is compatible with Stream Manager running on Greengrass Core 1.11 and above.

StreamManager Usage

const {
    StreamManagerClient
} = require('aws-greengrass-stream-manager-sdk');

const c = new StreamManagerClient({
    onConnectCb: async () => {
        try {
            // Let's start with something simple.
            // Just print out all the available stream names on the server 
            console.log(await c.listStreams());
        } finally {
            c.close(); // Always close the client when you're done
        }
    }
});

1.1.0 Updates

Stream manager supports automatic data export to AWS S3 and AWS IoT SiteWise, provides new API method to update existing streams, and pause or resume exporting.

Getting Help

License

Apache 2.0