Code for Arduino nano+HM10 Bluetooth SoftwareSerial+HW Ser. Debugging

This Sketch uses the Software Serial on Pin 10/11 for the HM10 BLE Module. The debugging works still fine over the hardware serial over USB.

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX

#define BLYNK_PRINT Serial
#define BLYNK_USE_DIRECT_CONNECT
#include <BlynkSimpleSerialBLE.h>

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

void setup()
{
  // Debug console
   Serial.begin(9600);

  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  mySerial.begin(9600);
  Blynk.begin(mySerial, auth);
}

void loop()
{
  Blynk.run();
}