I have created a service (in C# using PISDK) that connects to a single Pi Server.
I create the connection like this:
PISDK.PISDK pi = new PISDK.PISDK(); Servers servers = pi.Servers; string piServerHost = Config.getString("piServerHost"); server = servers[piServerHost];
This gives me a connection to 1 server, which is kept open until the application quits (can run for weeks/months).
Is there a way to specify multiple servers (primary and secondary) such that it will transparently switch over to the secondary server if the primary server isn't available?