Login Timeout Issue with Arduino Uno and HC-06

Greetings. I am very new with any blynk and electronics in general and I’m having trouble getting my project connected. I have an arduino UNO with an adafruit motor shield on top, then an HC-06 connected to that.

I uploaded this code to connect the bluetooth:

#define BLYNK_PRINT Serial
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "XXXX";

SoftwareSerial SerialBLE(10, 11); // RX, TX

void setup()
  // Debug console

  Blynk.begin(SerialBLE, auth);

  Serial.println("Waiting for connections...");

void loop()
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!

However, it won’t connect. Most of the time, on the blynk app, it says “not online yet.” Even when it says “online” and led on the hc-06 is steady, the serial monitor says “login timeout.”

I usually upload the code with USB onto the arduino, then connect the shield and the hc-06. I tried it without the shield and the same thing happened. Since the device is saying that “Wasn’t online yet”, I am guessing that this is also a connection to cloud problem. Seems like it is not connecting to the Blynk-cloud. Thank you!

So… which one are you intending you use on those pins? They can’t share :stuck_out_tongue:

Since it appears you are using the SerialBLE, then delete the other just in case it is adding to the issue.

Then make sure your TX/RX connections are properly wired (RX from one dev goes to TX on the other)

Confirm that the BLE module is properly powered and that the BAUD rast programmed into it is the same as the 9600 you are using on the sketch.

And finally, double check your AUTH

The module LED status only refers to the pairing between itself and the phone.

However, If the App says “online”, then it should in fact be online… and thus have printed the “Waiting for connections…” message since Blynk.begin() is a blocking command and should not allow further processing until actual server link (via phone) is established.

Perhaps you missed that message or are mistaken about the “online” part??

@Gunner: The code above has been generated using Sketch Bulder (
But, unfortunately the result is useless - as you mentined, already.
Apart from the duplicate softserials on pin 10,11 It does not contain “#define BLYNK_USE_DIRECT_CONNECT”.

@chanl: Try the example code that comes with the library - it works:

I see… Please report any Sketch Builder issues via the reporting button in the lower right corner of that page. Then the developers may correct them. Thanks.


Thank you, l will report the errors. I will try out the suggestions, then report the findings.