code: func (s *Adaptor) Variable(name string) (result string, err error) {
  	url := fmt.Sprintf("%v/%s?access_token=%s", s.deviceURL(), name, s.AccessToken)
  	resp, err := s.request("GET", url, nil)
  
  	if err != nil {
  		return
  	}
  
  	val := resp["result"]
  	switch val.(type) {
  	case bool:
  		result = strconv.FormatBool(val.(bool))
  	case float64:
  		result = strconv.FormatFloat(val.(float64), 'f', -1, 64)
  	case string:
  		result = val.(string)
  	}
  
  	return
  }
docs: // Variable returns a core variable value as a string