Hola, estoy intentando guardar datos leidos de un DHT22 directamente en un data_bucket a traves de una conexión GPRS con un módulo SIM800L. Sin embargo no consigo que la conexión se establezca correctamente. Esto es lo que me sale con el DEBUG activo:
***************** CIRCUITO RECIEN CONECTADO
tail 8
chksum 0x2d
csum 0x2d
[NETWORK] Connected!
[_SOCKET] Connecting to iot.thinger.io:25200…
[_SOCKET] Using secure TLS/SSL connection: no
[_SOCKET] Connected!
[THINGER] Authenticating. User: xavierix Device: DHT22
[THINGER] Writing bytes: 34 [OK]
[_SOCKET] Cannot read from socket!
[THINGER] Auth Failed! Check username, device id, or device credentials.
[_SOCKET] Is now closed!
Fase 1
[THINGER] Writing bytes: 45 [FAIL]
[THINGER] Expected:45
[THINGER] Wrote:0
Fase 2
40347
Humedad: 58.00 % Temperatura: 18.90 *C
***************** SEGUNDO INTENTO
[_SOCKET] Connecting to iot.thinger.io:25200…
[_SOCKET] Using secure TLS/SSL connection: no
[_SOCKET] Connected!
[THINGER] Authenticating. User: xavierix Device: DHT22
[THINGER] Writing bytes: 34 [OK]
[_SOCKET] Cannot read from socket!
[THINGER] Auth Failed! Check username, device id, or device credentials.
[_SOCKET] Is now closed!
Fase 1
[THINGER] Writing bytes: 48 [FAIL]
[THINGER] Expected:48
[THINGER] Wrote:0
Fase 2
117613
Humedad: 56.50 % Temperatura: 19.10 *C
***************** DESCONECTADA ALIMENTACION DEL SIM800L
[NETWORK] Starting connection…
[NETWORK] Initializing Modem…
[NETWORK] Cannot init modem! Is it connected?
[NETWORK] Cannot connect!
Fase 1
[THINGER] Writing bytes: 48 [FAIL]
[THINGER] Expected:48
[THINGER] Wrote:0
Fase 2
195690
Humedad: 56.10 % Temperatura: 19.10 *C
Está conectado a través de un ESP8266 y las librerias que utilizo son:
#include <TinyGsmClient.h>
#include <ThingerTinyGSM.h>
Si lo hago a traves del Wifi del ESP8266 funciona correctamente.
Alguna idea de por donde tirar?
Saludos.