OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// MQTT client library for the [MQTT protocol](http://mqtt.org/), a lightweight | 5 /// MQTT client library for the [MQTT protocol](http://mqtt.org/), a lightweight |
6 /// IoT pub/sub messaging protocol. | 6 /// IoT pub/sub messaging protocol. |
7 /// | 7 /// |
8 /// The implementation uses the [Paho C client | 8 /// The implementation uses the [Paho C client |
9 /// library](http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.c.git/about/). | 9 /// library](http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.c.git/about/). |
10 /// | 10 /// |
11 /// Usage | 11 /// Usage |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 var handler = subscriptions[msg.topic]; | 227 var handler = subscriptions[msg.topic]; |
228 if (handler != null) { | 228 if (handler != null) { |
229 // Call the event handler for topic. | 229 // Call the event handler for topic. |
230 handler(msg.message, msg.topic); | 230 handler(msg.message, msg.topic); |
231 } | 231 } |
232 } | 232 } |
233 } | 233 } |
234 } | 234 } |
235 } | 235 } |
236 } | 236 } |
OLD | NEW |