Closed nebneb0703 closed 2 years ago
send()
was moved to a Client
struct which wrapped around the handler and mqtt client. topic() -> Topic
has an indeterminate amount of arguments if in a trait, and therefore left out for the user to create statically before sendingRequest
trait created which implements response() -> S
.
send(client)
which will publish the message via mqtt and subscribe to the handler that it is awaiting for further messages on this topic if relevant.topic() -> &Topic
which will return the topic to which this message publishes to.response() -> S
which will return the new struct (default()
) which is a response to the current struct.