block_until_connected

Function block_until_connected 

Source
pub fn block_until_connected(desist_after: usize) -> Result<(), NetError>
Expand description

Block until connected

Polls the access point state until connection is established, desist_after times is reached, or an error occurs. The polling is done at 50ms intervals using sceKernelDelayThread.

§Parameters

  • desist_after: The number of times to poll the state before desisting

§Errors

Same as init_connection_to_access_point