I am using Node MCU for my project and I am connecting the project with Blynk apps for notifications. Now I need to connect my project to Thinger to get a view of the database. How do I connect my project to Thinger. Attached herewith is my combined code for the Blynk servo and Thinger.
#include <ThingerESP8266.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
#define USERNAME "athirahnabihah"
#define DEVICE_ID "IPCS"
#define DEVICE_CREDENTIAL "AllahuAkbar"
#define SSID "TP-LINK-TugasAKhir"
#define SSID_PASSWORD "AllahuAkbar"
ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
Servo servo;
char auth[] = "RrJYw3ESNOG3HMkiPTRWT2Iro-dXu37J"; // your auth code
char ssid[] = "TP-LINK-TugasAKhir"; // ssid name
char pass[] = "AllahuAkbar"; // ssid password
void setup()
{
pinMode (D4, OUTPUT);
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
thing.add_wifi (SSID, SSID_PASSWORD);
thing["D4"] << digitalPin(D4);
servo.attach(2); // NodeMCU D4 pin
}
void loop(){
thing.handle();
}
{
Blynk.run();
}
BLYNK_WRITE(V1)
{
servo.write(param.asInt());
}```