Central Location for Device Publish Handling
Closed this issue · 0 comments
suyashkumar commented
Create a central location where all device publish events are handled and appropriately routed to registered callback functions. Can take the form of a DeviceEventRouter
object that has a register
function to register functions to be called when publishes happen on the publishString
topic.
Every time a publish by a device occurs, the DeviceEventRouter object ensures that the proper registered callback functions get called and/or that the published message gets saved to the db or datastream db.