- Learning AWS IoT
- Agus Kurniawan
- 211字
- 2021-06-30 19:26:06
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:

- Word排版技術大全(第2版)
- Hands-On G Suite for Administrators
- 計算機應用基礎Office 2010實踐指導
- Word Excel PPT商務辦公從新手到高手(白金全彩版)
- Excel 2016數據透視表從入門到精通
- Word/Excel/PPT 2016商務辦公從新手到高手
- Word/Excel/PPT 2019應用與技巧大全(視頻自學版)
- PPT演義:100%幻燈片設計密碼
- Excel高手捷徑 一招鮮 吃遍天
- 征服Power BI:提升辦公數字化能力的45個實戰技巧
- 用圖表說話:Excel精美實用圖表大制作
- PowerPivot for Advanced Reporting and Dashboards
- 電腦急救完全DIY
- PowerShell for Office 365應用實戰
- DPDK應用基礎