Yanwen An Andy
Results
1
comments of
Yanwen An Andy
publish是发布消息,你要接收消息,需要用on来订阅这个topic,其中的参数MqttHandler hanler是一个接口实现,在这个接口实现中写自己的onMessage方法。 `/** * Subscribe on the given topic, with the given qos. When a message is received, MqttClient will invoke the {@link MqttHandler#onMessage(String, ByteBuf)} function of the given handler...