personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot [2017/09/28 22:49] – [MQTT] brolin | personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot [2017/11/19 18:54] (actual) – [MQTT] brolin | ||
|---|---|---|---|
| Línea 32: | Línea 32: | ||
| - | **influx data format** -> | + | ===== influx data format |
| + | |||
| https:// | https:// | ||
| https:// | https:// | ||
| Línea 38: | Línea 39: | ||
| timestamp tiene una formato definido por la precisión, para ajustarlo se hace por medio de un parámetro\\ | timestamp tiene una formato definido por la precisión, para ajustarlo se hace por medio de un parámetro\\ | ||
| https:// | https:// | ||
| + | |||
| + | https:// | ||
| ^ Query String Parameter | ^ Query String Parameter | ||
| | precision=[ns, | | precision=[ns, | ||
| + | **Schema Design**\\ | ||
| + | https:// | ||
| - | ===== Convertir CSV en Flash a influx data format para enviar por MQTT ===== | + | ===== ESP8266 Wireless NTP Server |
| - | + | ||
| - | **Función strtok:** Del manual de linux para strtok | + | |
| - | + | ||
| - | < | + | |
| - | EXAMPLE | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | An example of the output produced by this program is the following: | + | |
| - | + | ||
| - | $ ./a.out ' | + | |
| - | 1: a/ | + | |
| - | --> a | + | |
| - | --> bbb | + | |
| - | --> cc | + | |
| - | 2: xxx | + | |
| - | --> xxx | + | |
| - | 3: yyy | + | |
| - | --> yyy | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | int | + | |
| - | | + | |
| - | { | + | |
| - | char *str1, *str2, *token, *subtoken; | + | |
| - | char *saveptr1, *saveptr2; | + | |
| - | int j; | + | |
| - | + | ||
| - | if (argc != 4) { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | + | ||
| - | for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) { | + | |
| - | token = strtok_r(str1, | + | |
| - | if (token == NULL) | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | for (str2 = token; ; str2 = NULL) { | + | |
| - | | + | |
| - | if (subtoken == NULL) | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | } | + | |
| - | | + | https:// |
| - | } | + | |
| - | </code> | + | |
| - | **Crean servidor NTP de la hora obtenida con el GPS** -> https:// | + | https:// |
| + | http:// | ||
| + | https:// | ||
personas/brolin/proyectos/agentes_calidad_aire/infraestructura_iot.1506638972.txt.gz · Última modificación: por brolin
