public static Pin CreatePin(RemoteControlServiceMux mux, string name, string cfgData) { Pin pin = FindPinByName(name); if (pin != null) { pin.ConfigureAndStart(cfgData); return(pin); } throw new ConfigurationErrorsException(string.Format("The pin: {0} does not exist.", name)); }
public static Pin CreatePin(RemoteControlServiceMux mux, string name, string cfgData) { Pin pin = FindPinByName(name); if (pin != null) { pin.ConfigureAndStart(cfgData); return pin; } throw new ConfigurationErrorsException(string.Format("The pin: {0} does not exist.", name)); }