Loading…

Method Name: MthDisableServiceAccessHart

Method ID: 0x44BB

Method Label: Disable Service Access

Method Help: Disabling service parameter access via HART. I.e. Resetting the authorization level to Standard (1).


  • {
  • char achCmdStatus[3];
  • int iDesiredLevel;
  • long ai32VariableIds[2];
  • int iResult;
  • iResult = SELECT_FROM_LIST(literal_string(2165),literal_string(2166));
  • if (iResult != 1)
  • return;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _iassign(18335,0);
  • _iassign(16414,1);
  • iDesiredLevel = _ivar_value(16414);
  • send(184,achCmdStatus);
  • if (achCmdStatus[0] != 0)
  • {
  • display_response_status(184,achCmdStatus[0]);


Please login for more