Beispiel #1
0
 public override PacketContentBase getResponse(PacketContentBase req)
 {
     PCReadDeviceRemarksResponse resp = new PCReadDeviceRemarksResponse(new byte[20]);
     resp.Fill(resp._fields[0], 0);
     return resp;
 }
Beispiel #2
0
 public abstract PacketContentBase getResponse(PacketContentBase req);
Beispiel #3
0
 public override PacketContentBase getResponse(PacketContentBase req)
 {
     byte channelNo = 8;
     byte[] buff = new byte[4 + Math.Max(2, (int)(channelNo / 8))];
     PCSingleChannelControlResponse resp = new PCSingleChannelControlResponse(buff);
     resp.Set(resp._fields[0], req.GetByte(req._fields[0]));
     resp.Set(resp._fields[2], req.GetByte(req._fields[1]));
     resp.Set(resp._fields[1], PacketContentBase.ValueSuccess);
     resp.Set(resp._fields[3], (byte)channelNo);
     resp.Fill(resp._fields[4], (byte)255);
     return resp;
 }