Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Device-SDK-C : Autoevents not working as expected in v2.0 #362

Open
nil4git opened this issue Aug 6, 2021 · 1 comment
Open

Bug: Device-SDK-C : Autoevents not working as expected in v2.0 #362

nil4git opened this issue Aug 6, 2021 · 1 comment

Comments

@nil4git
Copy link
Contributor

nil4git commented Aug 6, 2021

With autoEvents->onChange set to true, still the events to core-data keep coming at mentioned regular interval (instead of the onChange event only)

@nil4git
Copy link
Contributor Author

nil4git commented Aug 9, 2021

Example Sample device : res/device/myDevice.json

{
"name": "Comm-Device",
"profileName": "Comm-DevProfile",
"description": "Communication Device",
"protocols":
{
"Other": { "Address": "someSensorEndpoint" }
},
"autoEvents":
[
{ "sourceName": "Led1-Status", "onChange": true, "interval": "10s" },
{ "sourceName": "Led2-Status", "onChange": true, "interval": "11000ms" },
{ "sourceName": "PushButtonStatus", "onChange": true, "interval": "12s" }
]
}

Continous flow of events irrespective of value change

level=INFO ts=2021-08-09T13:27:40Z app=device-Comm correlation-id=8c970ad9-2528-4d2a-bbc4-d2e73064fde1 msg="AutoEvent: Comm-Device/PushButtonStatus"
level=INFO ts=2021-08-09T13:27:40Z app=device-Comm correlation-id=6767a8e8-0a0e-4ec9-b92b-9771c74c761c msg="AutoEvent: Comm-Device/Led2-Status"
level=INFO ts=2021-08-09T13:27:42Z app=device-Comm correlation-id=0ca63ff3-1b84-4668-9904-3c34919091db msg="AutoEvent: Comm-Device/Led1-Status"
level=INFO ts=2021-08-09T13:27:51Z app=device-Comm correlation-id=7d1ab76d-31db-4e89-88fa-a2b73a277ce8 msg="AutoEvent: Comm-Device/Led2-Status"
level=INFO ts=2021-08-09T13:27:52Z app=device-Comm correlation-id=6bacfdc3-3e66-4937-a9e4-b828665cbfd7 msg="AutoEvent: Comm-Device/PushButtonStatus"
level=INFO ts=2021-08-09T13:27:52Z app=device-Comm correlation-id=e6090703-b7de-43a3-b587-a7f073732c23 msg="AutoEvent: Comm-Device/Led1-Status"

Setup

Dependent EdgeX microservices (viz core-data, metadata, command etc) are running in non-containerized environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant