Beispiel #1
0
 /// <summary>
 /// Starts up the insteon system.
 /// </summary>
 /// <param name="callbacks">The parameters for all the callbacks</param>
 /// <returns>true if we successful started up</returns>
 public bool Startup(FroggySystem callbacks)
 {
     this.callbacks         = callbacks;
     insteon                = new Insteon.FluffInsteon(config.ComPort, this);
     insteon.DeviceAdded   += insteon_DeviceAdded;
     insteon.DeviceChanged += insteon_DeviceChanged;
     return(insteon.Startup());
 }
Beispiel #2
0
 /// <summary>
 /// Disposes the system, but turning off insteon and everything else.
 /// </summary>
 public void Dispose()
 {
     insteon.Dispose();
     insteon = null;
 }