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

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:

主站蜘蛛池模板: 隆安县| 芜湖市| 安多县| 庐江县| 桦南县| 岳池县| 女性| 柏乡县| 安徽省| 浪卡子县| 屏南县| 通辽市| 阿拉善右旗| 定安县| 郸城县| 弥勒县| 长子县| 萝北县| 明星| 云浮市| 吉隆县| 科技| 乡城县| 济源市| 子洲县| 乳山市| 安仁县| 凉山| 宁化县| 方山县| 洱源县| 阳原县| 吉水县| 那曲县| 关岭| 岳西县| 云浮市| 黑水县| 林西县| 太谷县| 大余县|