1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | package com.dy.common.mw.protocol4Mqtt; 
 |    
 |  /** 
 |   * @Author: liurunyu 
 |   * @Date: 2025/6/10 15:39 
 |   * @Description 
 |   */ 
 |  public interface MqttCallback { 
 |      /** 
 |       * @param subMsg 订阅的消息 
 |       */ 
 |      void callback(MqttSubMsg subMsg) ; 
 |    
 |      /** 
 |       * 只有协议解析器才知道RTU真实的状态,所认提供此接口,向外通知设备的一些状态 
 |       * @param infos 
 |       */ 
 |      void notify(String devId, MqttNotifyInfo...infos) ; 
 |  } 
 |  
  |