Viam C++ SDK current
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
viam::sdk::ViamChannel Class Reference

Public Member Functions

void close ()
 
 ViamChannel (std::shared_ptr< GrpcChannel > channel, const char *path, void *runtime)
 
const std::shared_ptr< GrpcChannel > & channel () const
 

Static Public Member Functions

static std::shared_ptr< ViamChanneldial (const char *uri, const boost::optional< DialOptions > &options)
 Connects to a robot at the given URI address, using the provided dial options (or default options is none are provided). Ignores initial connection options specifying how many times to attempt to connect and with what timeout. In general, use of this method is discouraged. RobotClient::at_address(...) is the preferred method to connect to a robot, and creates the channel itself.
 
static std::shared_ptr< ViamChanneldial_initial (const char *uri, const boost::optional< DialOptions > &options)
 

Member Function Documentation

◆ dial()

static std::shared_ptr< ViamChannel > viam::sdk::ViamChannel::dial ( const char * uri,
const boost::optional< DialOptions > & options )
static

Connects to a robot at the given URI address, using the provided dial options (or default options is none are provided). Ignores initial connection options specifying how many times to attempt to connect and with what timeout. In general, use of this method is discouraged. RobotClient::at_address(...) is the preferred method to connect to a robot, and creates the channel itself.

Exceptions
Exceptionif it is unable to establish a connection to the provided URI

◆ dial_initial()

static std::shared_ptr< ViamChannel > viam::sdk::ViamChannel::dial_initial ( const char * uri,
const boost::optional< DialOptions > & options )
static

In general, use of this method is discouraged. RobotClient::at_address(...) is the preferred method to connect to a robot, and creates the channel itself.

Exceptions
Exceptionif it is unable to establish a connection to the provided URI within the given number of initial connection attempts

The documentation for this class was generated from the following file: