Comments (2)
Hi Mona,
The config.json file is optional, you don't have to use it if you don't want to. In the AWS IoT console, if you select a thing and then click the 'Connect a device' button, you'll be guided through a workflow to create the device's identity and configuration information to connect one of the SDKs. For the Node.js SDK, the configuration information is represented as a config.json file, with a format like this:
{
"host": <Your endpoint>,
"port": 8883,
"clientId": <Your client ID>,
"thingName": <Your thing name>,
"caCert": <Your root CA certificate filename>,
"clientCert": <Your client certificate filename>,
"privateKey": <Your private key filename>
}
The console generates this for you, or you can create your own using the above template. You also have the option of not using a config.json file and just specifying the options directly using command line parameters. Let us know if that answers your question, and thanks for using AWS IoT.
from aws-iot-device-sdk-js.
Hi @lamiastella. We haven't heard back from you on this issue, so we're going to go ahead and close it. Feel free to re-open it if you have further questions on this topic, and thanks for using AWS IoT.
from aws-iot-device-sdk-js.
Related Issues (20)
- Just Read it HOT 1
- Can jobs and thingShadow share the same connection to device? HOT 3
- WebSocket connection to 'wss://a85xxxxxxxx.iot.us-west-1.amazonaws.com/mqtt?....' failed HOT 7
- Not able to connect to wss through network proxy HOT 4
- AWS iot device disconnect method HOT 2
- How to create device shadow automatically? HOT 5
- How to connect IoT Core from MQTT client behind HTTP Proxy HOT 4
- device-example.js topics HOT 3
- AWS IOT reconnect issue after the browser tab goes idle for a while HOT 3
- Bump minimist to 1.2.6 HOT 1
- more than 5 fleet indexes HOT 2
- What is to be done after cloning and npm install steps in the documentation? HOT 2
- cannot connect from web to iot core using a custom authorizer HOT 15
- Unable to connect to socks proxy HOT 2
- Could not find a declaration file for module 'aws-iot-device-sdk' HOT 2
- BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default HOT 3
- when we generate build file with aws-iot-device-sdk in node js .. it has connection issue.. HOT 4
- V2.* doesn't work with node 4.2.6 HOT 5
- Override by AWS IoT SDK HOT 2
- Device connection disconnect constantly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-iot-device-sdk-js.