public void Call(int ActionID) { try { if (!m_Adapter.Connected) { throw new InvalidOperationException("No connection to device"); } m_Adapter.Call((ushort)NodeID, (ushort)ActionID); } catch (Exception e) { Console.WriteLine(e.Message); throw; } }
internal void Call(ushort Node, ushort Address) { if (m_IsAdapterEmulation) { return; } try { m_Adapter.Call(Node, Address); } catch (Exception ex) { throw new Exception(String.Format(Resources.Error_IOAdapter_Operation_Node_Address_Message, Node, Address, ex.Message, @"@Call")); } }