nn::cec::CTR::CecControl::StartScanning Member Function

Syntax

static nn::Result StartScanning(
     bool reset = false
);

Parameters

Name Description
in reset Set to true to erase the list of previous communication partners, making reconnection to those same communication partners possible. When this is done, data can be exchanged again not only for the currently set message box, but for all message boxes (all applications). This can only be set in debugging mode.

Return Values

nn::Result

Value Description
Result::IsSuccess Succeeded.
ResultStateBusy Operations did not start because Initialize was not run or some similar reason.
Any other value Process failed.

Description

Starts up StreetPass (CEC) operations.

Using this function transitions to a state in which communication can be started. The actual start of communication is controlled by the system ( nn::ndm ). Using this function does not cancel other communication (for example, Internet or local communication) or begin StreetPass immediately.
The MessageBox::OpenMessageBox function calls StopScanning and transitions to the communication stopped state. The MessageBox::CloseMessageBox function calls StartScanning(reset = false) and transitions to the communication-enabled state.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL