1. function description
// Send control command
// @ nCtrlType: control type
virtual bool DoControl(int nCtrlType) { return false;}
// Device control type definition
//#define TTX_CTRL_TYPE_OIL_STOP 1 // disconnect the oil circuit
//#define TTX_CTRL_TYPE_OIL_RESTORE 2 // restore oil circuit
//#define TTX_CTRL_TYPE_ELEC_STOP 3 // disconnect circuit
//#define TTX_CTRL_TYPE_ELEC_RESTORE 4 // restore circuit
//#define TTX_CTRL_TYPE_REBOOT 5 // restart the machine
//#define TTX_CTRL_TYPE_RESET 6 // Device Reset
// In order to save power and disk space, our DVR will automatically turn off the camera power and stop recording, in a dormant state,
// But once an alarm input or remote wake- up command is detected, the DVR will power on the camera and start recording
//#define TTX_CTRL_TYPE_SLEEP 7 // sleep
//#define TTX_CTRL_TYPE_WAKE 8 // wake up
//video channel number 0 means channel 1,1 means channel 2 98 means all channels (TTX_CHANNEL_ALL)
//#define TTX_CTRL_TYPE_START_RECORD 9 // Start recording // The upper two bytes are the channel number of the recording, and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_STOP_RECORD 10 // Stop recording // The upper two bytes are the channel number of the recording, and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_START_CRUISE 11 // The client starts polling this channel, the upper two bytes are the channel number, and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_STOP_CRUISE 12 // The client stops polling this channel. The upper two bytes are the channel number and the lower two bytes are the instructions.
//#define TTX_CTRL_TYPE_WRITE_LOG 13 // start logging function two bytes higher than 0 to write the log, 0 to not write the log
//#define TTX_CTRL_TYPE_FORMAT_HDD 14 // Format the hard disk (the high bit indicates the hard disk number, the hard disk number starts from 0, and the low bit indicates the command number)
//#define TTX_CTRL_TYPE_MILEAGE_CLEARED 15 // Mileage cleared
//#define TTX_CTRL_TYPE_FLIP_NORMAL 16 // forward rotation flip // the upper two bytes are the channel number and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_FLIP_REVERSE 17 // Translate Flip // The upper two bytes are the channel number and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_CLEAR_ALARM 18 // clear alarm
//#define TTX_CTRL_TYPE_SWITCH_CAM 19 // switch camera
//#define TTX_CTRL_TYPE_RECORD_SOUND 20 // Start recording // The upper two bytes are the channel number of the recording and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_STOP_REC_SOUND 21 // Stop recording // The upper two bytes are the channel number of the recording and the lower two bytes are the instructions
//#define TTX_CTRL_TYPE_WIFI_DOWN_FINISH 22 // end of wifi download