public ActionResult <string> Get(int zone) { if (!SpeakerCraftAmplifier.SendOffCommand(zone - 1)) { return("Error"); } ; return($"OK"); }
public ActionResult <string> Get(int zone) { if (!SpeakerCraftAmplifier.SendOnCommand(zone - 1)) { return("Error sending on command"); } ; if (!SpeakerCraftAmplifier.SendSelectSourceCommand(zone - 1, zone - 1)) { return("Error sending select source command"); } ; return($"OK"); }
public static void InitSerial(TestContext context) { SpeakerCraftAmplifier.Initialize("COM4"); }