예제 #1
0
        public bool WriteGrossTest(Behavior behavior)
        {
            _jetTestConnection = new TestJetbusConnection(behavior, "wss://172.19.103.8:443/jet/canopen", "Administrator", "wtx", delegate { return(true); });

            _wtxObj = new WtxJet(_jetTestConnection);

            _wtxObj.Connect(this.OnConnect, 100);

            _wtxObj.gross(WriteDataCompleted);     // Alternative : _jetTestConnection.Write("6002/01", 1936683623);

            if (_jetTestConnection.getDataBuffer.ContainsKey("6002/01") && _jetTestConnection.getDataBuffer.ContainsValue(1936683623))
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }
예제 #2
0
 // Write to WTX : Gross
 private void button4_Click(object sender, EventArgs e)
 {
     _wtxObj.gross(WriteDataCompleted);
 }