nn::cec::CTR::CecControl::StartScanning Member Functionstatic nn::Result StartScanning( bool reset = false );
| 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. |
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. |
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.
CONFIDENTIAL