Login to an IP controlled device from Netlinx
 bob                
                
                    Posts: 296
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....
DATA_EVENT[dvCOMPUTER] { STRING: { SELECT // LOGIN REQUEST { ACTIVE (FIND_STRING(DATA.TEXT,'LOGIN:',1)): // REQUEST FOR USER NAME { SEND_STRING dvCOMPUTER, "'login,password',$0D,$0A" // Added a LF, $0A } } } }With the Added LF you should be ok.
-Trav