Hi,
I’m trying to do an aquatic cooler with a function that could turn on/off with a settable parameter (It’s a Numeric Input) in a web page using the Blynk Rest API, but I don’t know how I have to send de request to set the Start and the Stop.
I was going through Blynk REST Api documentation and found this API endpoint: http://blynk-cloud.com/auth_token/update/pin?property=value
I tried updating timer property http://blynk-cloud.com/TOKEN/update/V5?startTime=66600 but it gives error - Wrong request format.
• NodeMCU with WiFi
• Android version 10
• Blynk server
• Blynk Library v0.6.1
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "YourAuthToken";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
BLYNK_WRITE(V5)
{
Serial.print("Got a value: ");
Serial.println(param.asStr());
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Thanks,
Gonzalo