Skip to content

CurieBLE: advertising doesn't work with longer local names #543

Open
@sandeepmistry

Description

@sandeepmistry
Contributor

Observed by @CarlaMSedze and @rodriguezcarlos from the Arduino CTC team in Malmo.

#include <CurieBLE.h>

void setup() {
  BLE.begin();

  BLE.setLocalName("Messenger");

  BLE.advertise();
}

void loop() {
}

We expect this sketch to work. As with 2.0.2 both the advertisement data and scan response are supported. I think we should be able to support local name values up to 20 characters ....

Activity

sandeepmistry

sandeepmistry commented on May 11, 2017

@sandeepmistry
ContributorAuthor

Sorry, the sketch to reproduce is actually:

#include <CurieBLE.h>

void setup() {
  Serial.begin(9600);
  while (!Serial);
  
  BLE.begin();

  BLE.setAdvertisedServiceUuid("19B10001-E8F2-537E-4F6C-D104768A1214");
  BLE.setLocalName("Messenger");

  Serial.println(BLE.advertise());
}

void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @sandeepmistry@SidLeung

      Issue actions

        CurieBLE: advertising doesn't work with longer local names · Issue #543 · arduino/ArduinoCore-arc32