Loading…

Method Name: set_rtc_echo_history_method

Method ID: 0x469B

Method Label: Ajustar Relógio

Method Help: Ajusta o Relógio de Tempo Real do dispositivo.


  • {
  • char status[3];
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • send(90,status);
  • last_clock_date = current_date;
  • last_clock_time = current_time;
  • _get_dev_var_value(literal_string(6),0,4442);
  • _get_dev_var_value(literal_string(1188),0,4443);
  • time_set = 1;
  • send(89,status);
  • if (status[0] == 16)
  • {
  • _get_dev_var_value(literal_string(1186),0,16404);
  • send_trans(150,2,status);
  • send(89,status);
  • if (status[0] == 16)
  • {


Please login for more