Loading…

Method Name: set_rtc_method

Method ID: 0x40D1

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);
  • _add_abort_method(19130);
  • send(90,status);
  • last_clock_date = current_date;
  • last_clock_time = current_time;
  • save_values();
  • _get_dev_var_value(literal_string(6),0,4442);
  • _get_dev_var_value(literal_string(1758),0,4443);
  • save_values();
  • time_set = 1;
  • send(89,status);
  • if (status[0] == 16)
  • {
  • _get_dev_var_value(literal_string(1709),0,16511);


Please login for more