From 0251776865b077cfee949a30c7c3d3f2924406fc Mon Sep 17 00:00:00 2001 From: Chales Date: Thu, 15 Aug 2024 11:13:22 +0800 Subject: [PATCH] docs: fix grammar mistake in README --- README.md | 4 ++-- README_CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 71052c6..38588a6 100644 --- a/README.md +++ b/README.md @@ -477,7 +477,7 @@ Devices report property data in the format defined in the product model to the p service_property = ServiceProperty() service_property.service_id = 'smokeDetector' service_property.properties = {'alarm': 10, 'smokeConcentration': 36, 'temperature': 64, 'humidity': 32} - services = [service_property.to_dict()] + services = [service_property] while True: device.get_client().report_properties(services, DefaultPublishActionListener()) @@ -1115,4 +1115,4 @@ connect_auth_info.max_buffer_message = 100 Refer to [Device Access Interface Documentation](./IoT-Device-SDK-Python-API Documentation.pdf) # 7.0 More documentation -Refer to [Device Access More Documentation](https://support.huaweicloud.com/devg-iothub/iot_02_0178.html) \ No newline at end of file +Refer to [Device Access More Documentation](https://support.huaweicloud.com/devg-iothub/iot_02_0178.html) diff --git a/README_CN.md b/README_CN.md index c6b4336..2aa43a6 100644 --- a/README_CN.md +++ b/README_CN.md @@ -465,7 +465,7 @@ def run(): service_property = ServiceProperty() service_property.service_id = 'smokeDetector' service_property.properties = {'alarm': 10, 'smokeConcentration': 36, 'temperature': 64, 'humidity': 32} - services = [service_property.to_dict()] + services = [service_property] while True: device.get_client().report_properties(services, DefaultPublishActionListener()) @@ -1114,4 +1114,4 @@ connect_auth_info.max_buffer_message = 100 参考[设备接入接口文档](./IoT-Device-SDK-Python-API文档.pdf) # 7.0更多文档 -参考[设备接入更多文档](https://support.huaweicloud.com/devg-iothub/iot_02_0178.html) \ No newline at end of file +参考[设备接入更多文档](https://support.huaweicloud.com/devg-iothub/iot_02_0178.html)