I’m sorry about my English is a little strange. Because I’m Japanese.
I have a problem about Auth Token.
I made a Templates at Blynk. Cloud. Like this↓
But there ain’t Auth Token.
So I can’t connect my device raspberry pi
How should I do?
I’m sorry about my English is a little strange. Because I’m Japanese.
I have a problem about Auth Token.
I made a Templates at Blynk. Cloud. Like this↓
So I can’t connect my device raspberry pi
How should I do?
You are looking at the Template screen.
Go to the Devices screen (Magnifying Glass icon at the top) and create a device from your template.
You will then get an auth token for your device.
Pete.
Wow!!
I can find it!!
Thank you very much!!!
I’m surprised at we can’t use wifi to connect RPi and Blynk 2.0.
I don’t have Blynk 1 account.
Is there other way to connect RPi and Blynk 2.0.
I’ve moved your new topic into your old one, as they seem to be related.
What programming language/Blynk Library are you attempting to use to connect your Pi to Blynk IoT?
Pete.
To run C++ on the Pi you need a C++ interpreter on the Pi. The solution to this was to use WiringPi, but WiringPi was deprecated in 2019.
Is there a reason why you’re using the Pi?
Pete.
Nothing.
I will try ESP32!!!
Thank you for teaching me.
#define BLYNK_TEMPLATE_ID “TMPL~~~”
#define BLYNK_DEVICE_NAME “~<s>"
#define BLYNK_AUTH_TOKEN "</s>~”
// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = “~<s>";
char pass[] = "</s>~”;
WidgetLED led1(V0);
BlynkTimer timer;
void blinkLedWidget()
{
if (led1.getValue()) {
led1.off();
Serial.println(“LED on V0: off”);
digitalWrite(13,LOW);
} else {
led1.on();
Serial.println(“LED on V0: on”);
digitalWrite(13,HIGH);
}
}
void setup()
{
pinMode(13,OUTPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, blinkLedWidget);
}
void loop()
{
Blynk.run();
timer.run();
}
I compiled this code.
And I wanna make the LED shine.
use blynk2.0 & esp32
I checked esp32 and my Ipone conected WiFi
but LED isn’t shine.
Only my blynk V0 button in my iphone Alternately glow
what sould i do
Make sure the led is not broken, and led connection polarity must be strictly observed.
You are supposed to have an LED widget attached to V0, not a Button widget.
Pete.