This topic describes the best practices for using Function Compute and Alibaba Cloud IoT platform to obtain weather data for IoT devices.

Scenarios

  • Obtain information, such as the weather and environment index, for apps running on smart home appliances.
  • Intelligent connection of traditional home appliances.
  • Extended applications, such as smart irrigation and severe weather alerts in smart cities.

Solution overview

The following figure shows the architecture of the solution.

Architecture - Figure

In the preceding figure:

  1. IoT devices connect to the IoT platform by using SDKs.
  2. The IoT platform forwards data to Function Compute by using rule engines.
  3. Function Compute calls APIs, such as the weather APIs, in Alibaba Cloud Marketplace.
  4. After Function Compute processes the data, messages are pushed to IoT devices for processing.

Benefits

  • Efficient access and support for various devices: Device SDKs are provided to connect devices to the cloud in an efficient manner. Devices around the globe can be connected. Devices on heterogeneous networks and in different environments can be connected over various protocols.
  • Powerful connection capabilities: Horizontal architecture scaling allows persistent connections to more than one hundred million devices and processes millions of concurrent connections.
  • High security: Multiple protection mechanisms are provided to ensure the security of devices in the cloud. The service availability reaches 99.9%.
  • Easy application setup: One-stop device management, real-time device monitoring, and seamless connections to Alibaba Cloud services are supported to facilitate the setup of IoT applications.
  • Low cost: IoT Platform is seamlessly integrated with Function Compute to allow the flexible use of cloud resources at reduced costs.