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
Documentation
SDLDiagnosticMessage

SDLDiagnosticMessage Class Reference

Section Contents

Overview

Non periodic vehicle diagnostic request

@since SDL 3.0

-initWithTargetId:length:data:

Convenience init

Objective-C

- (nonnull instancetype)
    initWithTargetId:(UInt16)targetId
              length:(UInt16)length
                data:(nonnull NSArray<NSNumber<SDLUInt> *> *)data;

Swift

init(targetId: UInt16, length: UInt16, data: [NSNumber & SDLUInt])

Parameters

targetId

Name of target ECU

length

Length of message (in bytes)

data

Array of bytes comprising CAN message

Return Value

An SDLDiagnosticMessage object

targetID

Name of target ECU

Required, Integer, 0 - 65535

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull targetID;

Swift

var targetID: NSNumber & SDLInt { get set }

messageLength

Length of message (in bytes)

Required, Integer, 65535

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull messageLength;

Swift

var messageLength: NSNumber & SDLInt { get set }

messageData

Array of bytes comprising CAN message.

Required, Array of NSNumber (Integers), Array size 1 - 65535, Integer Size 0 - 255

Objective-C

@property (nonatomic, strong) NSArray<NSNumber *> *_Nonnull messageData;

Swift

var messageData: [NSNumber] { get set }
View on GitHub.com
Previous Section Next Section