TOPLLab / WARDuino

📟 A dynamic WebAssembly VM for embedded systems
https://topllab.github.io/WARDuino/
Mozilla Public License 2.0
80 stars 7 forks source link

Re-evaluate `unsubscribe` interface #211

Open tolauwae opened 1 year ago

tolauwae commented 1 year ago

The interface of unsubscribe is weird, as it uses the fidx. This makes it easy to implement in WA. However, in Rust or AssemblyScript this doesn't make as much sense, and can often go wrong. (Same function different fidx) This is probably the reason why multiple callbacks per topic isn't that usual in MQTT.