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
DiagnosticMessage

DiagnosticMessage Class Reference

Constructors

Instance Methods

Constructors

new DiagnosticMessage(parameters)

Initializes an instance of DiagnosticMessage.

Instance Methods

diagnosticMessage.getMessageData() ⇒ Array.<Number>

Get the MessageData

Kind: Instance method of DiagnosticMessage
Returns: Array.<Number> - the KEY_MESSAGE_DATA value

diagnosticMessage.getMessageLength() ⇒ Number

Get the MessageLength

Kind: Instance method of DiagnosticMessage
Returns: Number - the KEY_MESSAGE_LENGTH value

diagnosticMessage.getTargetID() ⇒ Number

Get the TargetID

Kind: Instance method of DiagnosticMessage
Returns: Number - the KEY_TARGET_ID value

diagnosticMessage.setMessageData(data) ⇒ DiagnosticMessage

Set the MessageData

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

ParamTypeDescription
data Array.<Number> Array of bytes comprising CAN message. - The desired MessageData. {'array_min_size': 1, 'array_max_size': 65535, 'num_min_value': 0, 'num_max_value': 255}

diagnosticMessage.setMessageLength(length) ⇒ DiagnosticMessage

Set the MessageLength

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

ParamTypeDescription
length Number Length of message (in bytes). - The desired MessageLength. {'num_min_value': 0, 'num_max_value': 65535}

diagnosticMessage.setTargetID(id) ⇒ DiagnosticMessage

Set the TargetID

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

ParamTypeDescription
id Number Name of target ECU. - The desired TargetID. {'num_min_value': 0, 'num_max_value': 65535}
View on GitHub.com
Previous Section Next Section