Connect to the local or remote robot.
The port specifies the local serial port (such as COM5 or /dev/rfcomm0) or an IP-address of a computer with running remote robot object/daemon which is listening for connections (such as 147.175.125.30).
- Source:
- robotdll/robotdll.h:141
- Author:
- Version:
- latest version
- Params:
| id
| robot object handle
|
| port
| serial port name or IP address
|
- Returns:
- if port is successfully opened, the function returns 1, otherwise it returns 0
- See Also:
- robot_init, robot_user, robot_exclusive, robot_server, robot_connected
- Code:
public ROBOTDLL_API short robot_connect ( | short id , |
| | const char * port ) |