1. 程式人生 > >AWS IoT Core 常見問題

AWS IoT Core 常見問題

問:如何定義和觸發規則?

AWS IoT Core 規則包含兩大部分:

SQL 語句:指定要應用規則的釋出/訂閱主題、要執行的資料轉換(如有的話)以及執行規則的條件。該規則應用到在指定主題上釋出的每一條訊息。

操作列表:定義規則執行時(即:當傳入訊息匹配規則中指定的條件時)要採取的操作。

規則定義使用基於 JSON 的架構。您可以直接編輯 JSON,或使用 AWS 管理控制檯中的規則編輯器。

下面是一個規則示例,當溫度高於 50 時,它將來自感測器的溫度資料儲存到 DynamoDB 中:

{

    "sql": "SELECT * from 'iot/tempSensors/#' WHERE temp > 50",

    "description": "Rule to save sensor data when temperature is about 50",

    "actions": [

     {

            "dynamoDB": {

            "tableName": "HighTempTable",

            "roleArn": "arn:AWS:iam::your-AWS-account-id:role/dynamoPut",

            "hashKeyField": "key",

            "hashKeyValue": "${topic(3)}",

            "rangeKeyField": "timestamp",

            "rangeKeyValue": "${timestamp()}"

            }

        }

    )

}

本示例中的感測器在其位於“iot/tempSensors/”下的主題中釋出訊息。規則的第一行定義了一條查詢“iot/tempSensors/#”主題的 SQL SELECT 語句。它包含一條 WHERE 子句:提取訊息有效載荷中“temp”欄位的值並檢查其是否滿足“高於 50”的條件。如果滿足條件,則將資料儲存在指定的 DynamoDB 表中。本示例使用內建功能完成遍歷訊息有效載荷和獲取當前時間等任務。

相關推薦

AWS IoT Core 常見問題

問:如何定義和觸發規則? AWS IoT Core 規則包含兩大部分: SQL 語句:指定要應用規則的釋出/訂閱主題、要執行的資料轉換(如有的話)以及執行規則的條件。該規則應用到在指定主題上釋出的每一條訊息。 操作列表:

Questions fréquentes (FAQ) sur AWS IoT Core

Q : Qu'est-ce que la passerelle pour les appareils ? La passerelle pour les appareils représente la pierre angulaire de la communica

AWS IoT Core Overview

AWS IoT Core is a managed cloud service that lets connected devices easily and securely interact with cloud applications and other devices. AWS Io

AWS IoT Core Resources

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Présentations de AWS IoT Core

AWS IoT Core est un service basé sur le cloud géré qui permet aux appareils connectés d'interagir de manière simple et sécurisée avec d'autres app

Configuring Cognito User Pools to Communicate with AWS IoT Core

AWS IoT Core supports certificate-based mutual authentication, custom authorizers, and Amazon Cognito Identity as way to authenticate requests to

AWS IoT Core Features

The Rules Engine makes it possible to build IoT applications that gather, process, analyze and act on data generated by connected devices at gl

第七篇:AWS IoT Core服務成本優化

AWS IoT 物聯網系列部落格 當前物聯網環境中,裝置型別多種多樣,連線方式不一而足。為了幫助讀者更好的理解並運用 AWS IoT 相關服務,我們提供了一個完整的 IoT 起步指南,包含裝置的註冊及上線、裝置管理、使用者身份及許可權管理以及成本控制,通過這一系列的起步指南,

Tarification AWS IoT Core

2 250 000 minutes de connexion 500 000 messages 225 000 opérations exécutées sur le registre ou les shadows d'appareil

How AWS IoT Core is Helping Customers Navigate the Upcoming Distrust of Symantec Certificate Authorities

NOTE: This blog post describes important public key infrastructure (PKI) issues related to browser and mobile application connectivity to AWS IoT

AWS IoT Button 常見問題

問:我按照藍圖嚮導進行了操作,但是當我按下按鈕時,它顯示了綠光。我沒有收到電子郵件。 可能是因為您的 Lambda 函式沒有在 SNS 中建立資源的適當許可權。要進行確認,請轉到您剛剛利用嚮導建立的 Lambda 函式的 CloudWatch 日誌。為函式的執

AWS IoT Core Pricing

2,250,000 minutes of connection 500,000 messages 225,000 Registry or Device Shadow operations 250,000 rules t

Using AWS IoT Core in a Low-Power Application

At AWS, we work closely with customers to assist them in building various types of IoT solutions. We often hear from customers about the need to m

AWS IoT Core 定價

2250000 分鐘/連線 500000 條訊息 225000 項登錄檔或裝置影子操作 250000 條觸發規則和 250000 項執行操作 例如,免費套餐允許您執行 50 臺裝置的工

Setting Up Just-in-Time Provisioning with AWS IoT Core

In an earlier blog post about just-in-time registration of device certificates, we discussed how just-in-time registration (JITR) can be used to a

AWS IoT Core Getting Started

EIS-D210, wireless sensor management Edge Intelligence Server (EIS) is software and hardware integrated solution for IoT and cloud applicatio

AWS IoT Core FAQs

Q: What is the Device Gateway? The Device Gateway forms the backbone of communication between connected devices and the cloud capabi

AWS IoT 1-Click 常見問題

問:AWS IoT 1-Click 中有哪些功能? AWS IoT 1-Click 支援以下功能: 簡單裝置選項:AWS IoT 1-Click 支援隨時可用的簡單裝置(開箱即用)。目前,我們支援 AWS IoT Enterprise

AWS IoT Device Management 常見問題

問:什麼是 AWS IoT Device Management? AWS IoT Device Management 是一項服務,讓您可以在 IoT 裝置的整個生命週期內輕鬆而安全地大規模註冊、組織、監控和遠端管理 IoT 裝置。您可以使用 IoT Device

如何在Raspberry Pi 3B中安裝Windows 10 IoT Core

obs 目前 公司 img dashboard mst windows mark 微軟 Windows 10 IoT Core簡介 Windows 10 IoT是微軟專門為物聯網生態打造的操作系統,Windows 10 IoT Core則是Windows 10 IoT 操作