Unable to connect using BLE to known working RFduino

I have tried using several examples now and I’m still having no success connecting from an RFduino to Blynk on Android 6.0 (LG G3). This time I have used only the exact code from the Github repository RFduino example adding nothing but my auth code from my program (code pasted below). My blynk app can find the device (it sees the display name set in the code, I’ve changed the name before and the name changes correctly). However, upon clicking “connect” I am stuck on “Connecting…” for several minutes until it says “Can’t connect, please retry or choose another device”. I have removed all widgets from my app except the BLE connect widget just in case they were causing any problems. I have my board set to “generic board” as that was suggested by Vhymaskkyy at the end of one of the few other RFduino forum topics I’ve seen Here

I have connected successfully to this RFduino with non-Blynk projects using BleTerm so I know my phone is capable of connecting to it, but there is something going on with the Blynk code or app making it unable to connect.

I previously posted my initial errors in the “project help” part of the forum but this seems like a more fitting place for it, as even the simple Github code isn’t working as it should. My lDE, libraries, app, and phone firmware are all up to date.

I realize that BLE is in beta, but I’m wondering if anyone has had success with this code before or if it’s been changed without testing on the RFduino hardware, it is listed as a supported device on github here

Thank you.

/*************************************************************
  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.
    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Social networks:            http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app
  Blynk library is licensed under MIT license
  This example code is in public domain.
 *************************************************************
  This example shows how to use RFduino BLE
  to connect your project to Blynk.
  Note: This requires RFduino support package:
    https://github.com/RFduino/RFduino
  And BLEPeripheral library
    from http://librarymanager/all#BLEPeripheral
    or https://github.com/sandeepmistry/arduino-BLEPeripheral
  NOTE: BLE support is in beta!
 *************************************************************/

#define BLYNK_USE_DIRECT_CONNECT

#define BLYNK_PRINT Serial

#include <BlynkSimpleBLEPeripheral.h>
#include <BLEPeripheral.h>

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

// Create ble serial instance, parameters are ignored for MicroBit
BLESerial SerialBLE(0, 0, 0);

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

  SerialBLE.setLocalName("Blynk");
  SerialBLE.setDeviceName("Blynk");
  SerialBLE.setAppearance(0x0080);
  SerialBLE.begin();

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

  Blynk.begin(SerialBLE, auth);
}

void loop() {
  SerialBLE.poll();

  if (SerialBLE) {    // If BLE is connected...
    Blynk.run();
  }
}

2 posts were merged into an existing topic: Unable to connect to RFDuino