i am using esp 01 module and it can join my wireless network.
also i am updating my sensor data to ThingSpeak.
now i just want to get a current time.
many guys know Timezonedb.
i really want to use that api.
i got a key and i know api of timezonedb, but i do not know how to send api.
i have controlled esp module by only AT command, so can i send api with AT command from esp?
and is it possible, how can i send that?
waiting any reply.
i can not use WiFi library. because i may be newbie of arduiino i do not know use that..
void Init()
{
Serial3.println("AT");
if (Serial3.find("OK"))
Serial.println("Ready.");
Serial3.println("AT+CWMODE=3");//WiFi STA mode - if '3' it is both client and AP
delay(2000);
//Connect to Router with AT+CWJAP="SSID","Password";
// Check if connected with AT+CWJAP?
String cmd = "AT+CWJAP=""; // Join accespoint
cmd += SSID;
cmd += "","";
cmd += PASS;
cmd += """;
Serial3.println(cmd);
delay(5000);
if (Serial3.find("OK"))
{
Serial.println("WiFi connected");
}
else
{
Serial.println("WiFi Not connected");
}
Serial3.println("AT+CIPMUX=1");
delay(1000);
}