First day…
I loaded the Blynk Example Code Builder. I’m using an Arduino Uno with an HM-10 BLE module. I loaded the Blynk version 1.0.0 beta.3 library.
I installed the BLE component on my project on my iPhone 6s. iPhone 6s is connected to Internet via wifi.
When I attempt to “Connect BLE Device” a message says “BLE support is in prototyping and not available for standalone application”. The iPhone, when running other various apps, does easily connect with Bluetooth to the Uno and the HM-10 module.
I just want to confirm that, for now, I cannot use the BLE component for Uno connectivity. I don’t understand what “standalone application” refers to.
thank you!
#include <Blynk.h>
#define BLYNK_USE_DIRECT_CONNECT
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(10, 11); // RX, TX
#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleSerialBLE.h>
char auth[] = "[key removed]";
void setup()
{
DebugSerial.begin(9600);
DebugSerial.println("Waiting for connections...");
Serial.begin(9600);
Blynk.begin(Serial, auth);
}
void loop()
{
Blynk.run();
}
Uninstall this and install 0.6.1 instead.
Pete.
I replaced the library with the 0.6.1 version.
The LED on the BLE module remains lit for a few seconds during the time the iPhone is trying to connect. The LED reverts back to blinking when a message comes onto the iPhone stating “Can’t connect. Please retry or choose another device.”
I tried the sketch on an Arduino Mega 2560 along with a second HM-10 BLE device and the same thing happens.
Is the message, “BLE support is in prototyping and not available for standalone application.” of any concern?
Thank you for the help with this!
Does my Arduino need to be connected to the Internet in order for a Bluetooth connection to be established between the iPhone and the HM-10? I am wondering whether the “not available for standalone application” refers to the arrangement I have where there is no connection between the Arduino and the Internet.
If so, it seems I would have to have an Ethernet shield on the Arduino or perhaps a wifi connection to it. I don’t have those items. I do have a USB cable to the PC if that would suffice.
No.
What does the DebugSerial monitor output from the Uno show?
Pete.
Some progress! Bluetooth connects iPhone to Uno.
I followed an online tutorial which allowed me to use a terminal between Uno and iPhone to send and receive text and to turn an LED on and off. That used USB to the Uno to obtain an Internet connection.
But with the Bluetooth connected now, I haven’t been able to get the iPhone Blynk app to indicate ‘online’. And I don’t yet understand whether “online” refers to a connection to the Internet or whether the Bluetooth connection to the Uno exists. It seems even though there is a Bluetooth connection, the iPhone cannot control the Uno until ‘online’ is shown.