Dashboard Wake On Lan

Hi,

I would like to do a WOL.

Here, function that i use in javascript… Is somebody can help me to translate it inside dashboard? Thx a lot,

function wakeOnLAN(macAddress, ipAddress, port) {

const macBytes = macAddress.split(':').map(hex => parseInt(hex, 16));
const magicPacket = new Uint8Array(6 + 16 * macBytes.length);


magicPacket.fill(0xFF, 0, 6);

/for (let i = 6; i < magicPacket.length; i += macBytes.length) {
magicPacket.set(macBytes, i);
}
rosstalk.sendMessageWithResponse(ipAddress, port, magicPacket+‘\n’, ‘\n’, callback);
}

Best regards,

Hi Sylvain,

I’d suggest posting this question in the dashboard community, they should be able to point you in the right direction.

https://rossvideo.community/communities/community-home?CommunityKey=94781415-eb0f-4f9a-b891-c44d41d870c8