//Define un objeto ClienteXively con el fin de traer datos directamente del servidor public FeedXively RetornarDatosSensor(string feedID, DateTime fechaInicio, DateTime fechaFin) { _ClienteXively = new ClienteXively(ConfigurationManager.AppSettings["APIkey"], feedID); return(_ClienteXively.LeerMedicion(fechaInicio, fechaFin)); }
//Retorna los datapoints public string RetornarDatapointsFeed(string feedID, string DatastreamId, DateTime fechaInicio, DateTime fechaFin) { _ClienteXively = new ClienteXively(ConfigurationManager.AppSettings["APIkey"], feedID); return(_ClienteXively.RetornarDatapointsFeed(DatastreamId, fechaInicio, fechaFin)); }
//Esta funcion retorna el Json desde el servidor Xively public string ObtenerJsonFeed(string APIkey, string feedID) { _ClienteXively = new ClienteXively(APIkey, feedID); return(_ClienteXively.ObtenerJsonFeed()); }