diff options
| -rw-r--r-- | busdevice.c | 1 | ||||
| -rw-r--r-- | simplemotion.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/busdevice.c b/busdevice.c index 6a89396..b73da3f 100644 --- a/busdevice.c +++ b/busdevice.c @@ -52,6 +52,7 @@ void smBDinit() bdInitialized=smtrue; } +//accepted TCP/IP address format is nnn.nnn.nnn.nnn:pppp where n is IP address numbers and p is port number static int validateIpAddress(const char *s, const char **pip_end, const char **pport_start) { diff --git a/simplemotion.h b/simplemotion.h index 725d3dc..da9a26f 100644 --- a/simplemotion.h +++ b/simplemotion.h @@ -65,7 +65,8 @@ typedef enum _smVerbosityLevel {Off,Low,Mid,High,Trace} smVerbosityLevel; ///////////////////////////////////////////////////////////////////////////////////////
/** Open SM RS485 communication bus. Parameters:
- -devicename: "USB2VSD" or com port as "COMx" where x=1-16
+ -devicename: "USB2VSD" or com port as "COMx" where x=1-n
+ -devicename for TCP/IP connection format is nnn.nnn.nnn.nnn:pppp where n is IP address numbers and p is port number for TCP/IP connection
-return value: handle to be used with all other commands, -1 if fails
*/
LIB smbus smOpenBus( const char * devicename );
|
