private void async_SetConfigReceived(object sender, string data) { MRM_GET_CONFIG_REQUEST m = new MRM_GET_CONFIG_REQUEST(); m.MessageID = 4; RadarRequest.SendMRM_GET_CONFIG_REQUEST((Radar)sender, m); }
public static bool SendMRM_GET_CONFIG_REQUEST(Radar p, MRM_GET_CONFIG_REQUEST t) { try { byte[] b = new byte[8]; b[0] = b[1] = 0xA5; b[2] = 0x00; b[3] = 0x04; b[4] = 0x10; b[5] = 0x02; b[6] = (byte)(t.MessageID >> 8); b[7] = (byte)t.MessageID; p.Send(b); CommandOut = true; return(true); } catch { return(false); } }