New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one service or attribute is registered. #337

Closed
bluexmas opened this Issue Jan 24, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@bluexmas

bluexmas commented Jan 24, 2018

BLE addService
Only one service or characteristic is registered.

@bluetooth-mdw

This comment has been minimized.

Contributor

bluetooth-mdw commented Jan 24, 2018

@bluexmas I think we need a but more information to diagnose this issue. Could you provide some code please, including your config.json file? If your code is correct, the likelihood is you haven't reserved enough memory for the GATT attribute table using the gatt_table_size attribute like this:

{
    "microbit-dal": {
        "bluetooth": {
            "enabled": 1,
            "pairing_mode": 1,
            "private_addressing": 0,
            "open": 1,
            "security_level": "SECURITY_MODE_ENCRYPTION_NO_MITM",
            "whitelist": 1,
            "advertising_timeout": 0,
            "tx_power": 7,
            "dfu_service": 0,
            "event_service": 1,
            "device_info_service": 1
        },
        "gatt_table_size": "0x600"
    }
}
@bluexmas

This comment has been minimized.

bluexmas commented Jan 24, 2018

thank you.
I solved this problem..

@bluexmas bluexmas closed this Jan 24, 2018

@bluetooth-mdw

This comment has been minimized.

Contributor

bluetooth-mdw commented Jan 24, 2018

Could you share your problem and solution so that it might help others, please?

@bluexmas

This comment has been minimized.

bluexmas commented Jan 24, 2018

source - https://github.com/lancaster-university/microbit-samples/blob/master/source/examples/bluetooth-services/main.cpp

config.json - Only one service or characteristic is registered.

{
"microbit-dal":{
"bluetooth":{
"open": 1
},
"debug":0
}
}

config.json - success
{
"microbit-dal": {
"bluetooth": {
"enabled": 1,
"pairing_mode": 1,
"private_addressing": 0,
"open": 1,
"security_level": "SECURITY_MODE_ENCRYPTION_NO_MITM",
"whitelist": 1,
"advertising_timeout": 0,
"tx_power": 7,
"dfu_service": 0,
"event_service": 1,
"device_info_service": 1
},
"gatt_table_size": "0x600"
}
}

@bluetooth-mdw

This comment has been minimized.

Contributor

bluetooth-mdw commented Jan 24, 2018

Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment