private GenericConfiguration TestConfiguration() { var ports = TestRaspberryPiPorts(); var result = new RaspyberryPiConfiguration() { DeviceName = "TesteRaspy", Ports = ports, RaspyberryPiPorts = ports }; return(result); }
public void SetRaspberryPiConfiguration(RaspyberryPiConfiguration raspyberryPiConfiguration) { RaspyPinManager.Instance.LoadConfiguration(raspyberryPiConfiguration.RaspyberryPiPorts); }
public async Task InitializeRaspberryPi(RaspyberryPiConfiguration raspyberryPiConfiguration) { var configuration = raspyberryPiConfiguration; await Task.Run(() => DeviceConfigurationService.Current.SetRaspberryPiConfiguration(configuration)); }