Skip to content

temp tag to text - #65

Open
Malexys wants to merge 43 commits into
lifeemotions:masterfrom
CumpsD:master
Open

Malexys wants to merge 43 commits into
lifeemotions:masterfrom
CumpsD:master

Conversation

@Malexys

@Malexys Malexys commented Mar 6, 2021

Copy link
Copy Markdown

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

Malexys commented Mar 6, 2021

Copy link
Copy Markdown
Author

Ç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