Exemplo n.º 1
0
 /// <summary>
 /// Associate the sensor and the network
 /// </summary>
 /// <param name="network">Instance of <see cref="OneWireNetwork"/></param>
 public virtual  void Connect(OneWireNetwork network)
 {
     if (network == null)
     {
         throw new ArgumentNullException("network");
     }
     this._network = network;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Remove association between sensor and the network
 /// </summary>
 public  virtual void Disconnect()
 {
     this._network = null;
 }