Hi all,
I am trying to connect the blynk BLE to my hc-08. I have a arduino uno and i use android. The hc-08 is flashing blue that means that he is working. If i go in the app and click on connect BLE device i can see the hc-08. But if i try connecting it. It says can’t connect please retry or choose another devices.
I pretty sure my code is right. And that i connected everything rigth.
Anyone that can help me out? I have been trying for hours.
Code:
#define BLYNK_USE_DIRECT_CONNECT
// You could use a spare Hardware Serial on boards that have it (like Mega)
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(0, 1); // RX, TX
#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleSerialBLE.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "ZD-zMCX_CwNel5Gy0Y70E4TZ_UNc_Ftm";
void setup()
{
// Debug console
DebugSerial.begin(9600);
DebugSerial.println("Waiting for connections...");
// Blynk will work through Serial
// Do not read or write this serial manually in your sketch
Serial.begin(9600);
Blynk.begin(Serial, auth);
}
void loop()
{
Blynk.run();
}