public void SendGw(MsDevice dev, MsMessage msg) { if(_gate!=null) { _gate.SendGw(this, new MsForward(dev.Addr, msg)); } } public byte gwIdx { get { return (byte)(_gate==null?0xFF:_gate.gwIdx); } }