Login to an IP controlled device from Netlinx
bob
Posts: 296
Hi there,
just starting with Netlinx and studying the following example it is not clear to me why the login and password to a controlled IP device is send as "login,password", i.e. with comma inbetween? Shouldn't this be CR or CRLF?
DATA_EVENT[dvCOMPUTER]
{
STRING:
{
SELECT // LOGIN REQUEST
{
ACTIVE (FIND_STRING(DATA.TEXT,'LOGIN:',1)): // REQUEST FOR USER NAME
{
// SEND_STRING dvCOMPUTER, "'login,password', $0D" // SEND USER NAME
}
}
}
just starting with Netlinx and studying the following example it is not clear to me why the login and password to a controlled IP device is send as "login,password", i.e. with comma inbetween? Shouldn't this be CR or CRLF?
DATA_EVENT[dvCOMPUTER]
{
STRING:
{
SELECT // LOGIN REQUEST
{
ACTIVE (FIND_STRING(DATA.TEXT,'LOGIN:',1)): // REQUEST FOR USER NAME
{
// SEND_STRING dvCOMPUTER, "'login,password', $0D" // SEND USER NAME
}
}
}
0
Comments
So in your example....
With the Added LF you should be ok.
-Trav