示例#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;
 }
示例#2
0
 /// <summary>
 /// Remove association between sensor and the network
 /// </summary>
 public  virtual void Disconnect()
 {
     this._network = null;
 }