BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Arduino UNO with HM-10 Doesn't Work; S9


#1

trying to connect Samsung S9 to Blynk app over bluetooth with HM-10. Does not connect. Here is a list of the serial monitor:

and code

#define BLYNK_USE_DIRECT_CONNECT

#define BLYNK_PRINT Serial
#include <BlynkSimpleSerialBLE.h>

char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

WidgetLED led1(V1);

BLYNK_WRITE(V0) {
  //(param.asInt()) ? led1.on() : led1.off();
  (param.asInt()) ? Blynk.virtualWrite(V1, 255) : Blynk.virtualWrite(V1, 0);
}

void setup()
{
  Serial.begin(115200);

  Serial1.begin(9600);
  Blynk.begin(Serial1, auth);
}

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


#2

UNO doesn’t have a Serial1 UART option, only SoftSerial

https://examples.blynk.cc/?board=Arduino%20Uno&shield=HM10%20or%20HC08&example=GettingStarted%2FBlynkBlink