public int Read(ControlPot pot)
        {
            string response = _mbedService.RPC("Read", (int)pot);

            int intResponse = Int32.Parse(response);

            return(intResponse);
        }
 public void Write(ControlPot pot, int value)
 {
     _mbedService.RPC("Write", (int)pot, value);
     // used to turn the led off on the mbed.
     Read(pot);
 }
 public void Write(ControlPot pot, int value)
 {
     _mbedService.RPC("Write", (int)pot, value);
     // used to turn the led off on the mbed.
     Read(pot);
 }
        public int Read(ControlPot pot)
        {
            string response = _mbedService.RPC("Read", (int)pot);

            int intResponse = Int32.Parse(response);

            return intResponse;
        }