Herramientas de usuario

Herramientas del sitio


personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot [2017/09/28 01:04] – [MQTT] brolinpersonas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot [2017/11/19 18:54] (actual) – [MQTT] brolin
Línea 32: Línea 32:
  
  
-**influx data format** -> https://docs.influxdata.com/influxdb/v1.3/write_protocols/line_protocol_tutorial/+===== influx data format ===== 
 +  
 +https://docs.influxdata.com/influxdb/v1.3/write_protocols/line_protocol_tutorial/\\ 
 +https://docs.influxdata.com/influxdb/v1.3/concepts/glossary/#timestamp\\
  
-===== Convertir CSV en Flash a influx data format para enviar por MQTT =====+timestamp tiene una formato definido por la precisión, para ajustarlo se hace por medio de un parámetro\\ 
 +https://docs.influxdata.com/influxdb/v1.3/tools/api/#write
  
-**Función strtok:**+https://support.influxdb.com/hc/en-us/articles/205177928-What-time-formats-are-allowed-
  
-<code> +^ Query String Parameter     ^ Optional/Required  ^ Description                                                                                                                                   ^ 
-EXAMPLE +| precision=[ns,u,ms,s,m,h]  | Optional           | Sets the precision for the supplied Unix time valuesInfluxDB assumes that timestamps are in nanoseconds if you do not specify precision.**  |
-       The  program  below  uses  nested  loops  that employ strtok_r() to break a string into a two-level hierarchy of tokens.  The first command-line argument specifies the +
-       string to be parsed The second argument specifies the delimiter byte(s) to be used to separate that string into "major" tokens.  The  third  argument  specifies  the +
-       delimiter byte(s) to be used to separate the "major" tokens into subtokens.+
  
-       An example of the output produced by this program is the following:+**Schema Design**\\ 
 +https://docs.influxdata.com/influxdb/v1.3/concepts/schema_and_data_layout/
  
-           $ ./a.out 'a/bbb///cc;xxx:yyy:' ':;' '/' +===== ESP8266 Wireless NTP Server =====
-           1: a/bbb///cc +
-                    --> a +
-                    --> bbb +
-                    --> cc +
-           2: xxx +
-                    --> xxx +
-           3: yyy +
-                    --> yyy+
  
-   Program source+https://www.epochconverter.com/programming/c\\
  
-       #include <stdio.h> +https://www.hackster.io/Absolutelyautomation/esp8266-based-wireless-ntp-server-b77926\\ 
-       #include <stdlib.h> +http://www.instructables.com/id/ESP8266-Wireless-NTP-Stratum1-Server/\
-       #include <string.h> +https://hackaday.io/project/28013-esp8266-gps-ntp-server\\
- +
-       int +
-       main(int argc, char *argv[]) +
-       { +
-           char *str1, *str2, *token, *subtoken; +
-           char *saveptr1, *saveptr2; +
-           int j; +
- +
-           if (argc != 4) { +
-               fprintf(stderr, "Usage: %s string delim subdelim\n", +
-                       argv[0]); +
-               exit(EXIT_FAILURE); +
-           } +
- +
-           for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) { +
-               token = strtok_r(str1, argv[2], &saveptr1); +
-               if (token == NULL) +
-                   break; +
-               printf("%d%s\n", j, token); +
- +
-               for (str2 = token; ; str2 = NULL) { +
-                   subtoken = strtok_r(str2, argv[3], &saveptr2); +
-                   if (subtoken == NULL) +
-                       break; +
-                   printf(" --> %s\n", subtoken); +
-               } +
-           } +
- +
-           exit(EXIT_SUCCESS); +
-       } +
-</code>+
personas/brolin/proyectos/agentes_calidad_aire/infraestructura_iot.1506560678.txt.gz · Última modificación: 2017/09/28 01:04 por brolin