Writing an ASCOM switch driver

Hi, I am writing an ASCOM switch driver. It’s a very simple use case for my application, I just want to switch the power to my camera. I have lloked at the ASCOM ISwitchV2 methods and my question is:

Which ASCOM method does SGP use to manage a switch?

thanks
Paul

in particular, to switch the state of the switch i.e. on / off.

thanks
Paul

good question - I wrote one too a while ago for a 4-way USB relay. I have never used it within SGP as it is coupled to an external app. I’ll have a play when I get home from holiday.

Thanks Buzz, having looked again in the ASCOM platform developer help, I think for a simple on/off switch it will be the SetSwitch Method, sorry I missed that.
Paul

I use GetSwitchValue and SetSwtichValue, it works. I think SGP4 always treat GetSwitch and SetSwitch as “double” instead of “bool”, so either would work.