Ejemplo n.º 1
0
        // Start is called before the first frame update
        void Start()
        {
            server = new Server
            {
                Services = { SensorManagement.BindService(serviceImpl) },
                Ports    = { new ServerPort(host, port, ServerCredentials.Insecure) }
            };

            Debug.Log("Sensormanager server listening on port: " + port);
            server.Start();
        }
        // Manage sensors (modal)
        private void SensorsMgmt_Click(object sender, RoutedEventArgs e)
        {
            StopAcquisition();

            SensorManagement sensorManageModal = new SensorManagement(DictPhoton);

            sensorManageModal.ShowDialog();

            WriteConfToJson();
            UpdateUI();
        }