nn::ir::CTR::Communicator::AutoConnection Member Functionstatic Result AutoConnection( nn::fnd::TimeSpan sendReplyDelay, nn::fnd::TimeSpan waitRequestMin, nn::fnd::TimeSpan waitRequestMax, nn::fnd::TimeSpan waitReplyMin, nn::fnd::TimeSpan waitReplyMax );
| Name | Description | |
|---|---|---|
| in | sendReplyDelay | Specifies the amount of time to delay before sending a connection reply. |
| in | waitRequestMin | Specifies the minimum time to wait for a connection request. |
| in | waitRequestMax | Specifies the maximum time to wait for a connection request. |
| in | waitReplyMin | Specifies the minimum time to wait for a connection reply. |
| in | waitReplyMax | Specifies the maximum time to wait for a connection reply. |
Result values listed below.| Value | Description |
|---|---|
Result::IsSuccess |
Process was successful. |
ResultBufferInsufficient |
The buffer was insufficient so the connection process could not proceed. |
ResultAlreadyConnected |
Already in the connected state. |
ResultAlreadyTryingToConnect |
In the process of connecting. |
ResultMachineSleep |
Sleeping because the system is in Sleep Mode. |
ResultFatalError |
The IR module may be malfunctioning. |
Tries to make an authenticated connection.
This function can specify ranges of minimum and maximum times to wait for connection requests and connection replies. It can also specify an amount of time to delay before sending a connection reply.
When specifying the amount of time to wait for a connection request, specify a value that is larger than the time it takes to receive CONNECTION_REQUEST_PACKET_SIZE of data at the current baud rate. If you specify a time shorter than this, the system may time out before the connection request packet has been received and the connection will not be accepted.
For the same reason, when specifying the amount of time to wait for a connection request, specify a value that is larger than the time it takes to receive CONNECTION_REPLY_PACKET_SIZE of data.
If you specify a small value, such as 0, for the wait time, the processing load will be very large. Do not unintentionally specify a small value.
CONFIDENTIAL