nn::ac::CTR::DebugSetNetworkArea Function

Syntax

Result DebugSetNetworkArea(
     Config * config,
     NetworkArea networkArea
);

Arguments

Name Description
in config Instance of connection conditions.
in networkArea Network connection request level.

Return Values

The result.

Value Description
ResultSuccess Completed without error.
ResultInvalidData NULL was specified as an argument.
A value other than the above Failed for reasons other than those given above.

Description

Specifies the level of the network connection request.

If NETWORK_AREA_WAN is specified, this function succeeds with status [WAN Connected] when an Internet connection has been established.

If NETWORK_AREA_LAN is specified, this function succeeds with status [LAN Connected] when an access point connection is established.

If NETWORK_AREA_AUTO is specified, this function verifies whether an Internet connection has been established; even if one has not, the function succeeds with status [LAN Connected]. The function succeeds with status [WAN Connected] if an Internet connection has been established.

Note: This function is provided for debugging purposes. It will not work in Release builds.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL