Sorry if this is a rather basic question...
My projector is connected to the LAN. I'd like to switch it on over telnet.
I can do this in Windows as follows:
- When I connect, it prompts for a password which I type in e.g.
1234 [enter]
- It returns
Hello
. - I then type
C00 [enter]
to switch the projector on - I can type
C02 [enter] C02 [enter]
to switch it off (once to request power off, second time to confirm)
I have a basic function node like this:
msg.payload = '\n';
node.send(msg);
msg.payload = '1234\n';
node.send(msg);
msg.payload = 'C00\n';
node.send(msg);
plugged in to the TCP request node, set to return Never - keep the request open.
But it doesn't seem to work. I've set the output of the TCP request node to a function:
msg.payload = msg.payload.toString();
return msg;
then to a debug node, and I see:
6/11/2019, 12:09:43 AMnode: b0162d2f.c5451msg.payload : string[12]
"↵PASSWORD: "
6/11/2019, 12:09:43 AMnode: b0162d2f.c5451msg.payload : string[12]
"************"
Any idea what's going on here?