Loading…

Method Name: set_pressure_units

Method ID: 0x4030

Method Label: Set pressure units

Method Help: Change units of Pressure Value


  • {
  • long varid[3];
  • char status[3];
  • long old_unit;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • varid[0] = resolve_record_ref(resolve_array_ref(172,1),203);
  • old_unit = _ivar_value(resolve_record_ref(resolve_array_ref(172,1),203));
  • _get_dev_var_value(literal_string(119),0,resolve_record_ref(resolve_array_ref(172,1),203));
  • send(44,status);
  • if (status[0])
  • {
  • display_response_status(44,status[0]);
  • _iassign(resolve_record_ref(resolve_array_ref(172,1),203),old_unit);
  • }


Please login for more