Ejemplo n.º 1
0
        //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));
        }
Ejemplo n.º 2
0
        //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));
        }
Ejemplo n.º 3
0
 //Esta funcion retorna el Json desde el servidor Xively
 public string ObtenerJsonFeed(string APIkey, string feedID)
 {
     _ClienteXively = new ClienteXively(APIkey, feedID);
     return(_ClienteXively.ObtenerJsonFeed());
 }