By glumerlink
#42292
I am currently using the beetle to collect data from an accelerometer to transmit to a phone app. My problem, the beetle doesn't isn't sending anything to the app.

Fast info:
Model: Bluno Beetle BLE v1.1
Firmware: v1.97
BLE mode: Peripheral
Use case: Process information, broadcast to app
App: Made in MIT App Inventor 2

Test code for sending data from Arduino:
Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial BTserial(0, 1); // RX | TX
String c;
void setup() {
  Serial.begin(115200);  //initial the Serial
  BTserial.begin(115200);
 c = "f";
}

void loop()
{
    // test for software serial
    if (BTserial.available())
    { 
      c = BTSerial.read();
        BTserial.write(c);
        BTserial.print(c);
        BTserial.println(c);
    }
    // test for serial
    if (Serial.available())
    {
        c =  Serial.read();
        Serial.write(c);
        Serial.print(c);
        Serial.println(c);
    }
}
Test App appearance:
Image
Test App Code:
Image

Additional info:
I can send AT commands to the bluno, and pair with it.
If I send information to the characteristic at dfb1 the value of the characteristic changes to what i sent regardless of what my code is doing.
My app connects to my Arduino, and takes in information from it, but no Serial lines send information to it as far as I can tell.