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

ENHANCEMENT: SP2 and SP3 GetStatus with NO_RESPONSE state #55

Open
S474N opened this issue Sep 12, 2020 · 1 comment
Open

ENHANCEMENT: SP2 and SP3 GetStatus with NO_RESPONSE state #55

S474N opened this issue Sep 12, 2020 · 1 comment

Comments

@S474N
Copy link

S474N commented Sep 12, 2020

Is possible to add "NO_RESPONSE" state to "GetStatus"? If the outlet is offline, there is no information about it.

@mlfunston
Copy link
Owner

Could be done, but as it's an asynchronous call to the SP2/3 then we need to have some timeout functions to catch it.

The call to the unit is terminated automatically after 3 seconds anyway so the TCP port is cleaned up. So if you don't have an answer within 3 seconds then it's offline.

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

No branches or pull requests

2 participants