using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Wit.SDK.Modular.Sensor.Device; using Wit.SDK.Sensor.Device.Interfaces; namespace Wit.SDK.Modular.Sensor.Modular.ProtocolResolver.Interface { /// /// 协议解析器接口 /// public abstract class IProtocolResolver : IDeviceComponent { /// /// 读取数据时 /// public abstract void OnReadData(DeviceModel deviceModel, byte[] sendData, int delay = -1); /// /// 收到数据时 /// /// public abstract void OnReceiveData(DeviceModel deviceModel, byte[] data); public void OnClose(DeviceModel deviceModel) { } public void OnKeyUpdate(DeviceModel deviceModel, string key, object value) { } public void OnOpen(DeviceModel deviceModel) { } public void OnRemove() { } public void OnSend(DeviceModel deviceModel, byte[] data) { } public void OnUpdate(DeviceModel deviceModel) { } } }