This:
char mediacenter = "server1";
should be:
char mediacenter[] = "server1";
If server really is of type String the proper syntax would be:
if (switchState0 == LOW) {
server = "server1";
} else {
server = "server2"; }
This:
char mediacenter = "server1";
should be:
char mediacenter[] = "server1";
If server really is of type String the proper syntax would be:
if (switchState0 == LOW) {
server = "server1";
} else {
server = "server2"; }