Java client to turn relay on/off