MQTT-Client-Framework
MQTT-Client-Framework copied to clipboard
Extension for MQTTSessionManagerDelegate
trafficstars
let user to decide wheather trigger reconnect,sometime when error.code == MQTTSessionErrorConnackBadUsernameOrPassword | MQTTSessionErrorConnackServeUnavailable,reconnect is unnecessary.
I think your use case sounds reasonable to be implemented. I feel like didTriggerDelayedReconnectWithErrorshould be renamed to shouldTriggerDelayedReconnectForError or something like that.
I would also reverse condition so that we don't have empty if and we need some tests around this.