lifeemotions / knx.net

KNX.net provides a KNX API for .NET
MIT License
101 stars 47 forks source link

Feedback #62

Closed metto1907 closed 3 years ago

metto1907 commented 3 years ago

Hi, I want to take feedback and print a textboxa or comboboxa.But I didn't get any information about what I did, can you help?

private void button7_Click(object sender, EventArgs e) {

        _connection = new KnxConnectionRouting { Debug = false, ActionMessageCode = 0x29 };
        _connection.KnxConnectedDelegate += Connected;
        _connection.KnxDisconnectedDelegate += Disconnected;
        _connection.KnxEventDelegate += Event;
        _connection.KnxStatusDelegate += Status;
        _connection.Connect();

        _connection.Action("5/0/8", 0x3E);
        //_connection.Action(LightOnOffAddress2, false);
        Thread.Sleep(200);
        _connection.RequestStatus("5/0/7");

        int state = 0;

        float xxx = (float)_connection.FromDataPoint("9.001",.... );

        _connection.RequestStatus("5/0/7");
        comboBox1.Items.Add(....);

        _connection.Disconnect();

    }