官术网_书友最值得收藏!

Setting up the development environment

After we have registered all the IoT devices for AWS IoT, we can set up our development environment. Depending on your kind of IoT device, you can install AWS IoT SDK for your device. You can review the details at https://aws.amazon.com/iot/sdk/.

For testing, we use a computer that acts as an IoT thing. The computer will access AWS IoT. To simplify our case, I use JavaScript SDK for AWS IoT, available at https://github.com/aws/aws-iot-device-sdk-js. Since JavaScript SDK for AWS IoT needs Node.js to run the program, your computer should install Node.js runtime. You can download and install Node.js for your platform from https://nodejs.org/.

To install AWS IoT SDK for JavaScript, do so through the npm package. You should install Node.js runtime for your platform. You can type the following command to install AWS IoT SDK for JavaScript:

$ npm install aws-iot-device-sdk

You can probably run this command at an administrator level if you get an error message due to a security issue.

For the development tool, you can use any text editor to write JavaScript scripts. For instance, you can use Visual Studio Code at https://code.visualstudio.com. You can see my sample JavaScript scripts on Visual Studio Code IDE  in the following screenshot:

主站蜘蛛池模板: 建水县| 始兴县| 武安市| 岱山县| 闽清县| 唐海县| 时尚| 交口县| 伊吾县| 黄梅县| 洞头县| 融水| 开江县| 鞍山市| 周至县| 南皮县| 临湘市| 井陉县| 贞丰县| 乌兰浩特市| 钟山县| 斗六市| 闽清县| 广州市| 岢岚县| 阳新县| 洛扎县| 黄浦区| 宜阳县| 阳江市| 礼泉县| 巩留县| 定边县| 禄丰县| 张家界市| 乌鲁木齐县| 桐乡市| 宜兰县| 福泉市| 栾川县| 奉贤区|