edgexfoundry / edgexfoundry/device-sdk-go

Option to create multiple events with readings

Open
#574 8 comments 0 reactions 0 assignees View on GitHub
device-services enhancement
Dominant language
Go
Stars
106
Forks
136
Avg merge
1h 36m
Merged PRs (30d)
1

Description

Using the current SDK, on AutoEvent schedule, the HandleReadCommands method gets called to create and add reading objects to an event. This, however presupposes that at the appointed schedule, only one event is to be created.

Some devices/sensors, when polled, return the data for multiple events/readings. For example, in some RFID devices, when the RFID reader is pulled, multiple RFID tag events are returned. Each tag event contains what tag was read, the signal strength, reader id, etc.

The SDK should allow for creation of multiple events as well as multiple readings on a single event.

Contributor guide

Open the contributing guide

Research direction

Start with the AutoEvent schedule and its HandleReadCommands method, then trace how readings are added to a single event. Determine the SDK API and lifecycle changes needed to represent multiple events from one poll. Done means a device can return multiple tag events, each containing its corresponding readings, with the relevant behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.