目录:https://my.oschina.net/zgldh/blog/5514606
原文:https://docs.edgexfoundry.org/2.1/walk-through/Ch-Walkthrough/
EdgeX 2.0
This walkthough has been updated to use the Ireland Release / EdgeX 2.0. Changes to this tutorial include: - Remove the creation and reference to Addressables and Value Descriptors - Use of the new V2 Device Profile structure - Cleanup of the command service and use of the device name as part of the command - and more
该攻略已更新至 EdgeX 2.0 即 Ireland 版本。更新包括:删除了可寻址对象和值描述符的创建和引用;清理了命令服务并将设备名作为命令得以部分;等等。
In order to better appreciate the EdgeX Foundry micro services (what they do and how they work), how they inter-operate with each other, and some of the more important API calls that each micro service has to offer, this demonstration API walk through shows how a device service and device are established in EdgeX, how data is sent flowing through the various services, and how data is then shipped out of EdgeX to the cloud or enterprise system.
为了更好的了解 EdgeX Foundry 各个微服务是什么、如何起作用、互相如何协作的、各自提供了哪些重要的API,本 API 示例实战攻略将展示如何在 EdgeX 里建立一个设备服务和其对应的设备,数据是如何在各个服务之间流转,以及数据如何流出 EdgeX,最终流入其他云服务或企业系统。
Through this demonstration, you will play the part of various EdgeX micro services by manually making REST calls in a way that mimics EdgeX system behavior. After exploring this demonstration, and hopefully exercising the APIs yourself, you should have a much better understanding of how EdgeX Foundry works.
在本示例中,你将模仿 EdgeX 系统的行为,通过手工发起 REST 请求的方式来扮演各种 EdgeX 微服务的一部分。在探索完毕本示例且亲自练习使用API后,你就能够对 EdgeX Foundry 是如何工作的有了足够的理解。
To be clear, this walkthrough is not the way you setup all your device services, devices, etc. In this walkthrough, you manually call EdgeX APIs to perform the work that a device service would do to get a new device setup and to send data to/through EdgeX. In other words, you are simulating the work of a device service does automatically by manually executing EdgeX APIs. You will also exercise APIs to see the results of the work accomplished by the device service and all of EdgeX.
需要说明的是,本攻略并非用于教你如何配置所有的设备服务、定义设备等等。在本攻略中,你将通过手动调用 EdgeX 的 API 来模拟设备服务的行为,从而配置一个新的设备而且将数据从该设备发送到 EdgeX。换句话说,本来设备服务会自动完成的一些任务,将由你手工模拟完成。你还将练习使用 API 来获取设备服务和整个EdgeX的工作结果。