Post 3 made on Sunday December 17, 2017 at 05:51 |
Hi Rene
Yes, with a bit of searching and judicious use of Wireshark, I got it sorted. Bottom line is that socket.write doesn't support writing a byte array - hence the []. Looking at wireshark, it just sends nothing at all. You need to convert it to a string.
Use ...
function ArrayToString(arr){
var stringToSend = ''; var i; for (i = 0; i < arr.length; i++) stringToSend += String.fromCharCode(arr[i]); return stringToSend }
then call
socket.write (ArrayToString([0x04,0x01,0x00,0x00,0x00,0x00,0xE0,0x00]));
Now have a fully working IP control version for the Sky box ...
pete S
|
|
|