cn.foxtech.device.protocol.v1.zktl.electric.handler.ZktlServiceKeyHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fox-edge-server-protocol-zktl-electric Show documentation
Show all versions of fox-edge-server-protocol-zktl-electric Show documentation
fox-edge-server-protocol-zktl-electric
/* ----------------------------------------------------------------------------
* Copyright (c) Guangzhou Fox-Tech Co., Ltd. 2020-2024. All rights reserved.
* --------------------------------------------------------------------------- */
package cn.foxtech.device.protocol.v1.zktl.electric.handler;
import cn.foxtech.device.protocol.v1.utils.netty.ServiceKeyHandler;
import cn.foxtech.device.protocol.v1.zktl.electric.encoder.Encoder;
import cn.foxtech.device.protocol.v1.zktl.electric.entity.ZktlDataEntity;
public class ZktlServiceKeyHandler extends ServiceKeyHandler {
@Override
public String getServiceKey(byte[] pdu) {
ZktlDataEntity entity = Encoder.decodeDataEntity(pdu);
return entity.getServiceKey();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy