How to filter duplicate data after data is pushed to Edgex
1455132351 opened this issue · comments
if you are using the AutoEvent from the Device Service, you can set onChange
field to true
in the AutoEvent of the Device.
如果您使用的是来自设备服务的自动事件,您可以在设备的自动事件中设置
onChange
字段true
。
Didn't quite understand,Mine is an external Mian function that actively pushes to Edgex to filter duplicates
please explain the whole scenario of how do you use EdgeX, and we can figure out how to help you.
请解释您如何使用EdgeX的整个场景,我们可以弄清楚如何帮助您。
I wrote a Java program that actively pushes data to Edgex in the hope that Edgex will filter it The push of repeated data,
请解释您如何使用 X 的整个场景,我们可以如何帮助您。
我写了一个Java程序,主动向Edgex推送数据,希望Edgex能过滤掉重复数据的推送,
I see that the application service instance has a simple filter, how do I write the filtering repeated data I need, and how to configure it after I write it
App Services do not have a built-in filter for duplicate values. You will have to write a custom App Service and filter function to accomplish this. Your function will need to cache the previous readings by resource and filter out any that match the cached value for the given resource name.
App Services do not have a built-in filter for duplicate values. You will have to write a custom App Service and filter function to accomplish this. Your function will need to cache the previous readings by resource and filter out any that match the cached value for the given resource name.
Is there any case or article for reference, because I don't know much about Edgex
you can refer to the EdgeX document website
https://docs.edgexfoundry.org/1.3/getting-started/ApplicationFunctionsSDK/
可以参考EdgeX文档网站
https://docs.edgexfoundry.org/1.3/getting-started/ApplicationFunctionsSDK/
thank you
可以参考EdgeX文档网站
https://docs.edgexfoundry.org/1.3/getting-started/ApplicationFunctionsSDK/
In which configuration file or folder should the SDK of the application service be put
In which configuration file or folder should the SDK of the application service be put
The SDK is used the develop an custom App Service in Go programing language.
See example here: https://github.com/edgexfoundry/edgex-examples/tree/master/application-services/custom/simple-filter-xml
@1455132351 , has your question be answered?