Closed jamesmunns closed 3 weeks ago
Right now, there's no define_dispatch! syntax for handling incoming Topic messages.
define_dispatch!
Topic
We implicitly support Topics MCU -> PC using the Sender methods.
Sender
We should probably have some syntax for "topic" handlers, like:
define_dispatch! { ... SomeTopic => topic blocking some_handler, }
or make "sections" for endpoints and topics, e.g.:
define_dispatch! { ... endpoints: { SomeEndpoint => async some_endpoint_handler, } // maybe `incoming_topics`? topics: { SomeTopic => async some_topic_handler, } }
This was closed by #53
Right now, there's no
define_dispatch!
syntax for handling incomingTopic
messages.We implicitly support Topics MCU -> PC using the
Sender
methods.We should probably have some syntax for "topic" handlers, like:
or make "sections" for endpoints and topics, e.g.: