lifeemotions / knx.net

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

RequestStatus without delegate #26

Closed denneboomyo closed 8 years ago

denneboomyo commented 8 years ago

Hi,

I was wondering if there is any way to receive the status of a device directly to a variable, like this: string state = connection.RequestStatus("0/0/1");

Thanks

abelsilva commented 8 years ago

Hi

No, KNX protocol is asynchronous. Although you can implement a wrapper function that would lock until the value expected is received.

Thanks

denneboomyo commented 8 years ago

Okay, thanks. You can close the issue.

EDIT: Another question. What is the Event delegate supposed to do? It doesn't fire for me, when I do any Action or RequestStatus.