You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ to JS by the [awscrt](https://github.com/awslabs/aws-crt-nodejs) package.
22
22
23
23
## What's New
24
24
25
+
The SDK now supports Greengrass IPC. See the [Greengrass IPC User Guide](https://github.com/aws/aws-iot-device-sdk-js-v2/blob/main/documents/GreengrassIPC.md)
26
+
or the [API Documentation](https://aws.github.io/aws-iot-device-sdk-js-v2/node/modules/greengrasscoreipc.html) for more information.
27
+
25
28
The SDK now supports MQTT5. See the [MQTT5 User Guide](https://github.com/awslabs/aws-crt-nodejs/blob/main/MQTT5-UserGuide.md)
26
29
or the API Documentation for [NodeJS](https://awslabs.github.io/aws-crt-nodejs/node/modules/mqtt5.html) or
27
30
the [browser](https://awslabs.github.io/aws-crt-nodejs/browser/modules/mqtt5.html) for more information. There is also a [MQTT5 sample for NodeJS](https://github.com/aws/aws-iot-device-sdk-js-v2/blob/main/samples/node/pub_sub_mqtt5) and a [MQTT5 sample for the browser](https://github.com/aws/aws-iot-device-sdk-js-v2/blob/main/samples/browser/pub_sub_mqtt5).
Copy file name to clipboardExpand all lines: documents/GreengrassIPC.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ The Javascript Greengrass IPC implementation has several differences relative to
36
36
* Single client - Other v2 IoT SDKs have both a v1 and v2 client, where the v1 client is low-level and more verbose (and complex) in usage, while the v2 client is streamlined and less prone to accidental misuse. Javascript Greengrass IPC skips the v1 client and starts directly with the v2 client approach.
37
37
38
38
## Greengrass IPC Example
39
-
For those who prefer to dive right in, you can start with our [Greengrass IPC example](./samples/node/gg_pic/index.ts).
40
-
The associated [README](./samples/node/gg_ipc/README.md) contains instructions for how to perform a local greengrass deployment of the sample
39
+
For those who prefer to dive right in, you can start with our [Greengrass IPC example](https://github.com/aws/aws-iot-device-sdk-js-v2/blob/main/samples/node/gg_ipc).
40
+
The associated [README](https://github.com/aws/aws-iot-device-sdk-js-v2/blob/main/samples/node/gg_ipc/README.md) contains instructions for how to perform a local greengrass deployment of the sample
This sample uses the AWS IoT [Greengrass IPC Client](https://aws.github.io/aws-iot-device-sdk-js-v2/node/modules/greengrasscoreipc) to defined a Greengrass component that subscribes to MQTT messages
6
+
on a topic in AWS IoT Core and periodically publishes messages to that topic.
7
+
8
+
Note: For this sample to work, you must have configured and installed the AWS Greengrass software on the local host. The IAM role
9
+
assumed by the Greengrass Nucleus must also include permissions to connect, subscribe, and publish to AWS IoT Core.
10
+
11
+
## Deploying the Component
12
+
13
+
First, go to the `./artifacts/com.amazon.RpcTest/1.0.0` folder and run the following command:
14
+
15
+
```sh
16
+
npm install
17
+
```
18
+
19
+
Then, from this folder, run the following Greengrass CLI command:
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
39
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
40
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
41
+
// "typeRoots": [], /* List of folders to include type definitions from. */
42
+
// "types": [], /* Type declaration files to be included in compilation. */
43
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
44
+
"esModuleInterop": true/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
45
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
46
+
/* Source Map Options */
47
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
48
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
49
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
50
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
51
+
/* Experimental Options */
52
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
53
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
0 commit comments