Skip to content

Fails to discover characteristics for service #10

@acstacey

Description

@acstacey

No matter what I put in for the array of characteristic UUIDs it fails to discover characteristics and never calls the callback. The same code discovers all characteristics in noble-uwp. (The service is successfully discovered)

GetCharacteristicsForUuidAsync: no characteristic with given id
BLEManager::Notify::<lambda_a1184b3e8bf00761754d30ee7a9f05b8>::operator (): GetCharacteristic error

server.discoverServices(serviceFilter, function (err, services) {
    logger.info("Discovering services");
    if (err) {
        logger.error('Service discovery error: ' + err);
        bt.properties.bluetoothDevice.disconnect();
        return;
    }
    console.log(services[0]);
    services[0].discoverCharacteristics([], function (err, characteristics) {
        if (err) {
            logger.error('Characteristic discovery error: ' + err);
            bt.properties.bluetoothDevice.disconnect();
            return;
        }
        console.log(characteristics);
    });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions