Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temp tag to text #65

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

temp tag to text #65

wants to merge 43 commits into from

Conversation

Malexys
Copy link

@Malexys Malexys commented Mar 6, 2021

How can I put the "temp" definition to a textbox or label, whatever I did did not work. Can you help?

static void Event(object sender, KnxEventArgs args)
{
if (args.DestinationAddress.Equals(new KnxThreeLevelGroupAddress(1, 1, 16)))
{
decimal temp = (decimal)connection.FromDataPoint("9.001", args.State);
textbox1.text=temp.tostring();
return;
}

if (args.DestinationAddress.ToString() == "1/1/17")
{
int perc = (int)connection.FromDataPoint("5.001", args.State);
Console.WriteLine($"New Event: device {args.DestinationAddress} has status {perc}");
return;
}
}

Christoph Keller and others added 30 commits April 23, 2015 12:02
Update paket to address TLS deprecation
…reeLevel, TwoLevel and FreeStyle).

This also supports extended GAs as supported starting with ETS4 and using the full 16-bit GA range.
Addressing:
 - Moved Addressing to separate classes (not relying on string for GAs)
 - Support for extended GAs (i.e. full 16 bit group addresses)
 - Support for different GA styles (ThreeLevel, TwoLevel, Free)

Telegram processing:
 - Added classes for ControlField1 and ControlField2
 - Added enums to better understand what the ControlFields actually represent
 - Changed event parameters to standard .net pattern
 - Fixed bugs for CF1 / CF2 (wrong hop count, wrong broadcast bit, 0.0.0 not allowed as address)

Testes:
 - Added tests for Addressing-classes
 - Added tests for ControlField-classes

Readme:
 - Updated to reflect changes of this commit
GA was tested against SourceAddress instead of DestinationAddress
@Malexys
Copy link
Author

Malexys commented Mar 6, 2021

Çalışmadığım her ne olursa olsun, "geçici" tanımını bir metin kutusuna veya etikete nasıl koyabilirim? Yardım edebilir misin?

statik void Olay (nesne gönderen, KnxEventArgs bağımsız değişkenler)
{
if (args.DestinationAddress.Equals (yeni KnxThreeLevelGroupAddress (1, 1, 16)))
{
decimal temp = (decimal) connection.FromDataPoint ("9.001", args.State);
textbox1.text = temp.tostring ();
dönüş;
}

if (args.DestinationAddress.ToString () == "1/1/17")
{
int perc = (int) connection.FromDataPoint ("5.001", args.State);
Console.WriteLine ($ "Yeni Etkinlik: device {args.DestinationAddress} {perc}" durumuna sahip);
dönüş;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants