public Mqtt(MQTTConnection connection) { _connection = connection; _topicMatcher = new MqttTopicMatcher(); _handlers = new List<MqttHandler>(); _connection.MqttMsgPublishReceived += OnConnectionOnMqttMsgPublishReceived; }
public Mqtt(MQTTConnection connection) { _connection = connection; _topicMatcher = new MqttTopicMatcher(); _handlers = new List <MqttHandler>(); _connection.MqttMsgPublishReceived += OnConnectionOnMqttMsgPublishReceived; }
public MqttRouter(IMqttClient connection) { _connection = connection; _topicMatcher = new MqttTopicMatcher(); _handlers = new List <MqttHandler>(); connection .MessageStream .Subscribe(msg => MqttMsgReceived(msg)); }