hello!
i try to send values from arduino uno to my android phone (motorola xt925, android 4.4.2), via bluetooth. so far, i have tried several bluetooth modules (hc05, hc08, hm10). the result is the same, with all these modules:
i uploaded a basic sketch to the uno:
#define BLYNK_DEBUG
#define BLYNK_PRINT Serial
#define BLYNK_USE_DIRECT_CONNECT
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>
#include <SimpleTimer.h>
char auth[] = "xxxxxxxxxxxx";
SoftwareSerial SerialBLE(2, 3); // RX, TX
SimpleTimer timer;
void setup()
{
// This is for debug prints
Serial.begin(9600);
SerialBLE.begin(9600); // Set Serial baud rate
Blynk.begin(auth, SerialBLE);
timer.setInterval(1000L, uptime);
}
void loop()
{
Blynk.run();
timer.run();
}
void uptime()
{
Blynk.virtualWrite(V0, millis() / 1000);
Blynk.virtualWrite(V1, "connected");
}
created a new sketch in blynk app. the strange thing is, that importing the ble widget could not find my hc8 or hm10 modules. only the bluetooth widget found them. i can connect to the modules this way. (the red led on the module remains constantly on after connecting)
when i start the project, nothing happens on the phone, apparently everything is normal.
but the values from the arduino never arrive to the phone.
if i start the debug, i got the following output:
[0] Blynk v0.4.0 on Arduino Uno
[0] Connecting...
[1000] Cmd skipped:20
[1000] Cmd skipped:20
[2000] Cmd skipped:20
[2000] Cmd skipped:20
[3000] Cmd skipped:20
[3000] Cmd skipped:20
[4000] Cmd skipped:20
[4000] Cmd skipped:20
[5000] Cmd skipped:20
[5000] Cmd skipped:20
[6000] Cmd skipped:20
[6000] Cmd skipped:20
[7000] Cmd skipped:20
[7000] Cmd skipped:20
[8000] Cmd skipped:20
[8000] Cmd skipped:20
[9000] Cmd skipped:20
[9000] Cmd skipped:20
i have checked the cables, restarted the phone, the arduino, reloaded the sketch with different settings, tried 3 different ble modules, nothing changed.
i’m not really sure what does this debug output means.
please help.
thank you!