From f096c464c7063b1405b9aa1ac26d36236f997225 Mon Sep 17 00:00:00 2001 From: Tero Kontkanen Date: Fri, 12 May 2017 16:38:52 +0300 Subject: Add info about valid IP address format --- busdevice.c | 1 + simplemotion.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 ); -- cgit v1.2.3