|Post 3 made on Sunday August 23, 2020 at 12:37|
Many thanks for the offer - that's incredibly kind. I'll email the library in a moment - be gentle with me on my coding - my proper programming days were cobol, fortran and a bit of C, and this has been hacked together through various bits of reading.
The protocol is reverse engineered via wireshark - it's not documented or publicly available.
I create a new instance in an activity event
var skyip = new com.sketch.sky.IPControl("kitchen");
then, I'll call a command
On and Off are a bit different since I have to check first the current power state using a different port to get status as there are no distinct power commands, but after that, they also just use SendCommand, so it's there I'll need to build in the queue. The logic actually makes perfect sense with the queue - I'm glad my thoughts were on the right track at least.