public static bool Exec(AutomationWindow window) { byte[] payload; payload = new byte[1]; payload[0] = 12; System.Array result; result = window.SendDmIcdPacketEx(payload, 9000); if (result.Length > 0) { _payload = new byte[result.Length]; _payload = ConvertToBytes(result); } return(true); }
/* * Request status from phone and store the response */ public static bool Exec(AutomationWindow window) { // Send request for status byte[] request = new byte[1]; request[0] = statusRequestCode; System.Array result = window.SendDmIcdPacketEx(request, 9000); System.Threading.Thread.Sleep(4000); // Store response if returned properly if (result.Length > 0) { sentPacket = true; response = new byte[result.Length]; response = ConvertToBytes(result); } return(sentPacket); }