Getting BLE data and sending to Arduino Cloud

Hi all,
in my project i'm trying to send ble data from a peripheral in central mode and send them in Arduino cloud.
The first step,getting ble data, is ok but when i call ArduinoCloud.update() in the loop nothing happens.

The simple snippet of code is listed below. The bLE variable is a thing variable that notify changes.

void loop() {

  ArduinoCloud.update();
   
  delay(2000);
  BLEDevice peripheral = BLE.available();

  if (peripheral) {

    String address=peripheral.address();
    beacondata=address;
    
    Serial.println(beacondata);
  }
  
}

Thanks

Any ideas ?

As further element, i've tried to insert a thing variable under ArduinoCloud.update() and it is reported correctly to the Arduino Cloud.
But everything after
BLEDevice peripheral=BLE.available() is ignored and not reported.

Are you trying to use BLE and WiFi at the same time? That does not work. You can only use one or the other. Switching between them requires reconfiguration, takes some time and it not as trivial as you would suspect.

Hi,
thanks for the reply.
Indeed I was forced to send the data over the Serial1 (pin 0) to a MKR GSM 1400 board. It's not the best solution but it works.

Thanks