Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaScript Suite Documentation

GetDTCsResponse Class Reference

Constructors

Instance Methods

Constructors

new GetDTCsResponse(parameters)

Initializes an instance of GetDTCsResponse.

Instance Methods

getDTCsResponse.getDtc() ⇒ Array.<String>

Get the Dtc

Kind: Instance method of GetDTCsResponse
Returns: Array.<String> - the KEY_DTC value

getDTCsResponse.getEcuHeader() ⇒ Number

Get the EcuHeader

Kind: Instance method of GetDTCsResponse
Returns: Number - the KEY_ECU_HEADER value

getDTCsResponse.setDtc(dtc) ⇒ GetDTCsResponse

Set the Dtc

Kind: Instance method of GetDTCsResponse
Returns: GetDTCsResponse - The class instance for method chaining.

ParamTypeDescription
dtc Array.<String> Array of all reported DTCs on module (ecuHeader contains information if list is truncated). Each DTC is represented by 4 bytes (3 bytes of data and 1 byte status as defined in VHR_Layout_Specification_DTCs.pdf). - The desired Dtc. {'array_min_size': 1, 'array_max_size': 15, 'string_min_length': 1, 'string_max_length': 10}

getDTCsResponse.setEcuHeader(header) ⇒ GetDTCsResponse

Set the EcuHeader

Kind: Instance method of GetDTCsResponse
Returns: GetDTCsResponse - The class instance for method chaining.

ParamTypeDescription
header Number 2 byte ECU Header for DTC response (as defined in VHR_Layout_Specification_DTCs.pdf) - The desired EcuHeader. {'num_min_value': 0, 'num_max_value': 65535}
View on GitHub.com