adafruit / Adafruit_BluefruitLE_nRF51

Arduino library for nRF51822-based Adafruit Bluefruit LE modules
197 stars 122 forks source link

Not getting HWADDR back #58

Open ghost opened 3 years ago

ghost commented 3 years ago
void setup(void)
{

  //while (!Serial);
  delay(500);

  Serial.begin(115200);
  Serial.println(F("BT Remote"));
  Serial.println(F("---------------------------------------"));

  /* Initialise the module */
  Serial.print(F("Initialising the Bluefruit LE module: "));

  if (!ble.begin(VERBOSE_MODE))
  {
    error(F("Couldn't find Bluefruit, make sure it's in CoMmanD mode & check wiring?"));
  }
  Serial.println(F("OK!"));

   ble.println(F("AT+BLEGETADDR"));
   ble.waitForOK();
   Serial.print(F("Done."));
}

Whatever I try I cannot get the HWAddr from the Feather 32u4. I need either that or the serial number.

With ble.println(F("AT+BLEGETADDR")); or just ble.println ("AT+BLEGETADDR"); nothing is printed in the console.