View Source KNXex.GenStageProducer (knxex v0.1.0)
KNX telegrams GenStage producer and broadcast dispatcher.
Link to this section Summary
Functions
Starts the GenStage producer and broadcast dispatcher.
Subscribes to the given KNX interface and thus receives KNX telegrams from it.
Unsubscribes from the given KNX interface. KNX telegrams cannot be received from it anymore.
Link to this section Functions
Starts the GenStage producer and broadcast dispatcher.
Subscribes to the given KNX interface and thus receives KNX telegrams from it.
The received KNX telegrams are forwarded as GenStage events, in the form of {:knx, KNXex.Telegram.t()}.
This producer can also subscribe to GroupAddressServer, which will give you better information
about the group address, but less information about the source.
However said server uses a different struct and does not emit telegrams.
You will receive {:knx_group, GroupAddressData.t()} events in that case.
Unsubscribes from the given KNX interface. KNX telegrams cannot be received from it anymore.