j***@aliyun.com
j***@aliyun.com
  • 发布:2023-11-09 14:43
  • 更新:2024-12-06 11:43
  • 阅读:392

uts插件编译出错

分类:uts
class MyMqttCallbackExtended implements MqttCallbackExtended {  

        override connectComplete(reconnect : boolean, serverURI : string) {  
        }  
        override connectionLost(error : Throwable) {  
        }  
        override messageArrived(topic : string, message : MqttMessage) {  
        }  
        override deliveryComplete(token : IMqttDeliveryToken) {  
        }  
    }
open class MyMqttCallbackExtended : MqttCallbackExtended {  
        override fun connectComplete(reconnect: Boolean, serverURI: String) {}  
        override fun connectionLost(error: Throwable) {}  
        override fun messageArrived(topic: String, message: MqttMessage) {}  
        override fun deliveryComplete(token: IMqttDeliveryToken) {}  
    }
public interface MqttCallback {  
    void connectionLost(Throwable cause);  
    void messageArrived(String topic, MqttMessage message) throws Exception;  
    void deliveryComplete(IMqttDeliveryToken token);  
}
public interface MqttCallbackExtended extends MqttCallback {  
    void connectComplete(boolean reconnect, String serverURI);  
}

报错信息
‌error: Class 'MyMqttCallbackExtended' is not abstract and does not implement abstract member public abstract fun connectionLost(p0: Throwable!): Unit defined in org.eclipse.paho.client.mqttv3.MqttCallbackExtended‌

2023-11-09 14:43 负责人:无 分享
已邀请:
小新的狗叫小白

小新的狗叫小白 - 小新的狗叫小白

一样的问题,有解决吗?

要回复问题请先登录注册