FactbirdHQ / mqttrust

MQTT client for embedded devices, written in rust
53 stars 5 forks source link

Fix support for 'SubAck' #34

Open MathiasKoch opened 3 years ago

MathiasKoch commented 3 years ago

Currently SubAck packets are silently ignored, as the responseCode array needs to be handled correctly.

See https://github.com/BlackbirdHQ/mqttrust/blob/1600266795bcc5d3f33e566d5574a3ee4d5fc638/mqttrust/src/encoding/v4/subscribe.rs#L286-L308

And

https://github.com/BlackbirdHQ/mqttrust/blob/1600266795bcc5d3f33e566d5574a3ee4d5fc638/mqttrust_core/src/state.rs#L191-L199