public MainPage() { this.InitializeComponent(); bus = new Windows.Devices.AllJoyn.AllJoynBusAttachment(); bus.StateChanged += Bus_StateChanged; bus.CredentialsRequested += Bus_CredentialsRequested; // det = new org.allseen.LSF.LampDetails.LampDetailsWatcher(bus); // det.Added += Det_Added; // det.Start(); watcher = new org.allseen.LSF.LampState.LampStateWatcher(bus); watcher.Added += Watcher_Added; watcher.Start(); TimerForPhilipsBuldUpdate = new DispatcherTimer(); TimerForPhilipsBuldUpdate.Interval = StartTime; TimerForPhilipsBuldUpdate.Tick += TimerForPhilipsBuldUpdate_Tick; TimerForPhilipsBuldUpdate.Start(); }
private void Bus_StateChanged(Windows.Devices.AllJoyn.AllJoynBusAttachment sender, Windows.Devices.AllJoyn.AllJoynBusAttachmentStateChangedEventArgs args) { Debug.WriteLine("Bus_StateChanged"); }