Function init_connection_to_access_point

Source
pub fn init_connection_to_access_point(
    connection_id: i32,
) -> Result<(), NetError>
Expand description

Initialise a connection to an access point

§Parameters

  • connection_id: The ID of the access point to connect to

§Errors

NetError::Error if the connection initialisation failed

§Notes

The access point ID is a number greater or equal to 1. It is the index of the access point in the netconfig.

This function does not block until the connection is established. Use block_until_connected right after this function to block until the connection is established.