nn::uds::CTR::Scan Function

Syntax

nn::Result Scan(
     void * pBuffer,
     size_t bufferSize,
     u8 subId,
     bit32 localId,
     u8 channel = 0,
     u16 scanTime = 0
);

Arguments

Name Description
out pBuffer Discovered network information storage location.
in bufferSize Buffer size. Estimate roughly 1KB per network.
in subId Communication mode ID. Can be freely set by the application. Specify 0xff to search all sub IDs.
in localId The local communication ID. Specify the value generated by CreateLocalCommunicationId.
in channel Scans all channels used by UDS. Only set this value when you want to scan a specific channel.(0: Scans all channels used by UDS: 1, 6, and 11.)
in scanTime The scan time for a single channel. There is normally no need to specify this. (0: 110 milliseconds)

Return Values

Returns the function's execution result.

Description

Scans for nearby networks.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL