aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero Kontkanen <tero.k@granitedevices.fi>2017-05-12 16:38:52 +0300
committerTero Kontkanen <tero.k@granitedevices.fi>2017-05-12 16:38:52 +0300
commitf096c464c7063b1405b9aa1ac26d36236f997225 (patch)
tree647acecf5fead04913fca513aff549a664299a88
parent998a39044725968bcf4aad37de5891bb4cbaa2fb (diff)
downloadSimpleMotionV2-f096c464c7063b1405b9aa1ac26d36236f997225.tar.gz
SimpleMotionV2-f096c464c7063b1405b9aa1ac26d36236f997225.zip
Add info about valid IP address format
-rw-r--r--busdevice.c1
-rw-r--r--simplemotion.h3
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 );