WitsMqtt class
自定义的mqtt
Constructors
- WitsMqtt()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mqttClient ↔ MqttServerClient?
-
getter/setter pair
-
observerList
→ List<
Function> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addObserver(
dynamic call(MqttData mqttData)) → dynamic - 添加观察者
-
connect(
) → dynamic - 连接mqtt
-
disconnected(
) → dynamic - 断开连接
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publishMessage(
String pTopic, String msg, {MqttQos qos = MqttQos.atLeastOnce}) → int - 发送消息
-
revomeObserver(
dynamic call(MqttData mqttData)) → dynamic - 移除观察者
-
subscribed(
{required String topic, MqttQos qos = MqttQos.atMostOnce}) → Subscription? - 订阅主题
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited