Closed dg6nee closed 1 year ago
refactoring: MqttBroker contains a member variable with the name "broker". This is quite misleading and makes the code harder to understand, as this member is a mqtt client -> renaming from "broker" to "mqtt_client"
MqttClient is used because it has almost all what is necessary for a MqttBroker to connect with a remote Broker. When a broker links to another one, it must act as if it was a usual MqttClient. There is no link between brokers in Mqtt specification. And the zeroconf future feature wants this kind of link.
I vote for naming it remote_broker
instead of broker
:)
(Just the member variable; no need to rename the client class IMHO)
broker renamed to remote_broker
refactoring: MqttBroker contains a member variable with the name "broker". This is quite misleading and makes the code harder to understand, as this member is a mqtt client -> renaming from "broker" to "mqtt_client"