buf.writeBytes(event.getData());
super.write(ctx, buf, promise);
}else if (event.getType() == RemoteRxEvent.Type.error){
logger.debug("WRITE request for RemoteRxEvent: error");
buf.writeByte(2);
buf.writeBytes(event.getData());
super.write(ctx, buf, promise);
}else if (event.getType() == RemoteRxEvent.Type.completed){
logger.debug("WRITE request for RemoteRxEvent: completed");
buf.writeByte(3);
super.write(ctx, buf, promise);