Connection Status in GetState

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Post Reply
Nevermind
Posts: 29
Joined: Thu Sep 11, 2014 12:36 am

Connection Status in GetState

Post by Nevermind » Mon Oct 24, 2016 2:46 pm

Hi all,

i'm playing around with python and therefore i need the description of "Connection": in "GetState".
Especially, How many values are there and what do they mean?


thx,

Sebastian :)

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Connection Status in GetState

Post by agw » Fri Oct 28, 2016 12:27 am

I'm not entirely sure what you mean. What is it that you're trying to do?

Nevermind
Posts: 29
Joined: Thu Sep 11, 2014 12:36 am

Re: Connection Status in GetState

Post by Nevermind » Fri Oct 28, 2016 8:29 am

Hi,

i mean the key "Connection": in /WebAdmin/Index/GetState.
"Connection":2 means "Connected" But what does status 1,3,4,5 mean?

The background is, I have a Python script which shows me information from VRS on a small TFT.
Image

agw
Posts: 2241
Joined: Fri Feb 17, 2012 3:20 am

Re: Connection Status in GetState

Post by agw » Mon Oct 31, 2016 9:25 pm

Ah right - they're enum values out of the C# side:

https://github.com/vradarserver/vrs/blo ... nStatus.cs

C# enum values count up from 0 by default, so 0 = Disconnected, 1 = Connecting and so on.

Nevermind
Posts: 29
Joined: Thu Sep 11, 2014 12:36 am

Re: Connection Status in GetState

Post by Nevermind » Tue Nov 01, 2016 5:25 pm

Merci :)

Post Reply