public ble_msg_hardware_set_soft_timer_rsp_t ble_cmd_hardware_set_soft_timer(long time, int handle, int single_shot)
{
log("ble_cmd_hardware_set_soft_timer_id");
byte[] _data = new byte[SIZE_HEADER + 0 + 4 + 1 + 1];
int idx = 0;
// header
_data[idx++] = (byte)ble_dev_types.ble_dev_type_ble|(byte)ble_msg_types.ble_msg_type_cmd|0x0;
_data[idx++] = (byte)(0 + 4 + 1 + 1);
_data[idx++] = (byte)ble_classes.ble_cls_hardware;
_data[idx++] = (byte)ble_command_ids.ble_cmd_hardware_set_soft_timer_id;
// data
_data[idx++] = (byte)time;
_data[idx++] = (byte)(time >> 8);
_data[idx++] = (byte)(time >> 16);
_data[idx++] = (byte)(time >> 24);
_data[idx++] = (byte)handle;
_data[idx++] = (byte)single_shot;
// send
BgApiResponse response = Send(new BgApiCommand() { Data = _data }, false);
return (ble_msg_hardware_set_soft_timer_rsp_t)response;
}