public BMP180(Topic pin) {
if(pin==null) {
throw new ArgumentNullException();
}
if(pin.name=="BMP180_T") {
_T=pin as DVar<double>;
if(_T==null) {
throw new ArgumentException();
}
_P=_T.parent.Get<long>("BMP180_P");
} else if(pin.name=="BMP180_P") {
_P=pin as DVar<long>;
if(_P==null) {
throw new ArgumentException();
}
_T=_P.parent.Get<double>("BMP180_T");
} else {
throw new ArgumentException();
}
_present=_T.Get<bool>("present");
_present.saved=false;
_present.value=false;
Reset();
}
public override bool VarChanged(Topic snd, bool delete) {