code: func (a *API) robotDevices(res http.ResponseWriter, req *http.Request) {
  	if robot := a.master.Robot(req.URL.Query().Get(":robot")); robot != nil {
  		jsonDevices := []*gobot.JSONDevice{}
  		robot.Devices().Each(func(d gobot.Device) {
  			jsonDevices = append(jsonDevices, gobot.NewJSONDevice(d))
  		})
  		a.writeJSON(map[string]interface{}{"devices": jsonDevices}, res)
  	} else {
  		a.writeJSON(map[string]interface{}{"error": "No Robot found with the name " + req.URL.Query().Get(":robot")}, res)
  	}
  }
docs: // robotDevices returns devices route handler.
  // Writes JSON with robot devices representation