quartiq / minimq

Minimal no_std MQTT v5.0 client implementation
MIT License
141 stars 16 forks source link

broker trait #160

Open jordens opened 2 weeks ago

jordens commented 2 weeks ago

could this be simplified to an enum Broker { Ip, Named } instead of having the trait and type param propagation through the stack?

The two issues are:

jordens commented 2 weeks ago

Low priority. Can't see good solutions currently, the network stack being so "local". I do think a fallible and thus optional resolver might be worth it though. Same as standard OS networking stacks that look the same whether they can resolve or not.