Hi folks,
I saw some discutions about this issue, however anyone was effectived for my issue.
I am using the thinger.io plataform in the cloud. I have created a new device and defined all fields as:
Device ID = A3PGAO
Device Credentials = 123456789
Username = racionna
I tested sucessfully the connection using a MQTT client.
When I try to connect using a ESP32 (TTGO-T7-V13), I got a connection error:
[THINGER] Writing bytes: 55 [OK]
[THINGER] Auth Failed! Check username, device id, or device credentials.
[_SOCKET] Is now closed!
#define THINGER_SERIAL_DEBUG
#include <ThingerESP32.h>
#include <arduino_secrets.h>
ThingerESP32 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
void setup() {
Serial.begin(115200);
thing.add_wifi(SSID, SSID_PASSWORD);
}
void loop() {
delay(1000);
thing.handle();
}
I already disabled TLS using the #define DISABLE_TLS but no luck.
Has someone any idea, whats going on?