Project data synchronization and API operations

更新时间:
复制 MD 格式

To synchronize data, such as device and user information, between IoT Platform and third-party enterprise servers, you can use the HTTP/2 SDK or the recommended AMQP SDK. IoT Platform also lists available API operations and displays their features and service activation statuses.

Project data synchronization principle

Data synchronization uses the HTTP/2 or the recommended AMQP push method. The following diagram illustrates this process.

原理图
Note
  • IoT Platform no longer supports enabling data synchronization over HTTP. You must use the HTTP/2 or the recommended AMQP method to synchronize device and user data.
    • Customers who currently use the HTTP push method are not affected and can continue to use it. However, if you disable this method, you cannot re-enable it.
    • If you use HTTP to push user data and HTTP/2 to push device data, you must disable and then re-enable data synchronization. Then, you must use a single method, either HTTP/2 or the recommended AMQP method, to synchronize both device and user data.
    • If you currently use the HTTP/2 push method, you can switch directly to the recommended AMQP method. The data format and content remain the same.
  • Both the HTTP/2 and AMQP methods use best-effort delivery. If the cloud does not receive an acknowledgement (ACK) for a message, it adds the data to a retry queue and attempts to push it again. If messages become stacked, HTTP/2 data is stored for up to 7 days, and AMQP data is stored for up to 1 day.

How to enable device data synchronization

  1. On the IoT Platform Project Management page, click the Project Settings icon.

    Alternatively, go to the project homepage and click Project Settings.

  2. On the Device Data Synchronization tab, click Enable to turn on data synchronization.
  3. (Optional) Select the products for which you want to synchronize data.

    After you enable data synchronization, the feature is enabled for all products by default. If necessary, you can disable data synchronization for specific products.

Note For more information, see Data push using AMQP.

How to view API operations

  1. On the IoT Platform Project Management page, click the Project Settings icon.

    Alternatively, go to the project homepage and click Project Settings.

  2. Click the API Operations tab to view details about the API operations.