Herramientas de usuario

Herramientas del sitio


personas:brolin:proyectos:plataforma_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:plataforma_iot [2017/05/31 22:19] brolinpersonas:brolin:proyectos:plataforma_iot [2017/06/01 01:15] (actual) brolin
Línea 7: Línea 7:
  
 pio lib install thinger.io o en platformio.ini agregar línea lib_deps = thinger.io pio lib install thinger.io o en platformio.ini agregar línea lib_deps = thinger.io
 +
 +**Código prueba ** https://github.com/unloquer/test_thinger.io/blob/master/src/main.cpp
  
 **SKETCH OVERVIEW** **SKETCH OVERVIEW**
Línea 46: Línea 48:
 Thinger.io library provides extensive logging of its activities, which is especially useful when one needs to troubleshoot authentication and Wi-Fi connectivity issues. Include the following definition in your sketch, but make sure it comes first, before any other includes (it was reported to cause crashes on some boards otherwise). Thinger.io library provides extensive logging of its activities, which is especially useful when one needs to troubleshoot authentication and Wi-Fi connectivity issues. Include the following definition in your sketch, but make sure it comes first, before any other includes (it was reported to cause crashes on some boards otherwise).
  
 +<code>
 #define _DEBUG_ // the rest of your sketch goes here #define _DEBUG_ // the rest of your sketch goes here
 +</code>
  
 It is also necessary to enable Serial communication, as all the debugging information is displayed over Serial. So enable it in your sketch in the setup method. It is also necessary to enable Serial communication, as all the debugging information is displayed over Serial. So enable it in your sketch in the setup method.
  
 +<code>
 void setup() { void setup() {
   Serial.begin(115200);   Serial.begin(115200);
 } }
 +</code>
  
 **ESP8266 DEEP SLEEP AND SMARTCONFIG** **ESP8266 DEEP SLEEP AND SMARTCONFIG**
Línea 62: Línea 68:
 However, some boards chose to wire a built-in LED to the same D0 pin, and will go into a crash loop when using ThingerSmartConfig class, which uses the LED as a debugging aid at runtime. The solution is to use an overloaded constructor and disable its use of the LED. However, some boards chose to wire a built-in LED to the same D0 pin, and will go into a crash loop when using ThingerSmartConfig class, which uses the LED as a debugging aid at runtime. The solution is to use an overloaded constructor and disable its use of the LED.
  
 +<code>
 ThingerSmartConfig thing(USERNAME, ThingerSmartConfig thing(USERNAME,
                          DEVICE_ID,                          DEVICE_ID,
                          DEVICE_CREDENTIAL,                          DEVICE_CREDENTIAL,
                          false); // required for deep sleep                          false); // required for deep sleep
-                         +</code> 
 +                   
 **INTERACTING** **INTERACTING**
  
Línea 79: Línea 87:
   * Dashboards   * Dashboards
   * API Explorer   * API Explorer
 +
 +===== ESP8266 Arduino IDE =====
 +
 +https://community.thinger.io/t/esp8266-with-arduino-ide/20
  
personas/brolin/proyectos/plataforma_iot.1496269197.txt.gz · Última modificación: 2017/05/31 22:19 por brolin