SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
User avatar
By high ping
#243517
Hello all,
I'm trying to run a simple Bluetooth test on a custom Artemis board:
Code: Select all
#include <ArduinoBLE.h>

BLEService customService("19B10000-E8F2-537E-4F6C-D104768A1214"); // Define a custom service UUID
BLEStringCharacteristic customCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite, 100); // Use a default UUID

void setup() {
  // Start BLE
  BLE.begin();
  
  // Set a local name for the device
  BLE.setLocalName("test");
  
  // Add the service and characteristic
  customService.addCharacteristic(customCharacteristic);
  BLE.addService(customService);
  
  // Start advertising
  BLE.advertise();
  
  Serial.begin(9600);
}

void loop() {
  // Your Arduino code logic goes here
  
  // Read the value from the characteristic
  BLEDevice central = BLE.central();
  if (central) {
    if (customCharacteristic.written()) {
      Serial.println("Received: " + customCharacteristic.value());
    }
  }
}
My PC recognizes the module (with the name "test") but when trying to connect I get the following error:
Code: Select all
 AES failed... retrying: 0
In Serial output

How should I fix this?
User avatar
By codebrewbeans
#246126
Hi there. I have the same problem. Using Artemis Thing Plus board and latest adruino library. Standard laptop with Win10 installed. It finds the buetooth service but during connecting getting the AES failed error message.
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum