create_bearer_sync


Description:

[ Version ( since = "1.0" ) ]
public Bearer create_bearer_sync (BearerProperties properties, Cancellable? cancellable = null) throws Error

Synchronously creates a new packet data bearer in the Modem.

This request may fail if the modem does not support additional bearers, if too many bearers are already defined, or if properties are invalid.

See CreateBearer to check which properties may be passed.

The calling thread is blocked until a reply is received. See create_bearer for the asynchronous version of this method.

Parameters:

this

A Modem.

properties

A BearerProperties object with the properties to use.

cancellable

A Cancellable or null.

Returns:

A newly created Bearer, or null if error is set.