RFC: Signal instance events #301
Labels
enhancement
New feature or request
RFC
Requests For Comments are ideas up for discussion. If accepted they result in implementation tasks.
Introduction
The root elements in platforms are system resources. They offer events, modalities and signals. Users can supply event handlers to these events, can read modalities and read and write signals. Modalities and events are singular in the sense that per application there is only one instance of each of them. In contrast to that signals can be set up multiple times in signal instances.
This makes it so that users can for example react to an event in the accelerometer but not to an MQTT message.
Current Situation
Currently events per signal instance are not supported.
Proposal
I propose adding events to signal instances. For example an MQTT topic signal offers an
message
event or a GPIO pin offers input events likerisingEdge
,fallingEdge
.Code Example
The platform could declare signal instance events like this:
A user would react like this:
The text was updated successfully, but these errors were encountered: