ble_app_interactive using gatt to send command

Hello,

I am using nRF52840 DK to build ble_app_interactive.

Now I have device with NUS,I can connect to device using ble_app_interactive.

I have added NUS into ble_app_interactive,and I tried using gatt to send command.

But it shows the selected service does not contain the characteristic. I am sure that I have NUS in the device,and I can use nRF connect app to see it.

I want to ask if there is any step I did wrong, thank you.

Parents Reply
  • Hello,

    Thanks for reply.

    Now I have tried sdk 17.1.0 and tried gatt services MAC address.

    But there is still a problem exist.System reset and disconnect, no characteristics show.

    Here is the command I sent

    uart_cli:~$ connect F9:28:E7:D2:F5:5B
    connect F9:28:E7:D2:F5:5B
    <info> app: CENTRAL: Connecting...
    Connected to address: F9 28 E7 D2 F5 5B
    <info> app: CENTRAL: Connected, handle: 0.
    Current MTU: 128
    MTU changed successfully
    <info> app: Data length updated to 27 bytes.
    uart_cli:~$ gatt services F9:28:E7:D2:F5:5B
    gatt services F9:28:E7:D2:F5:5B
    <error> app: Fatal error
    <warning> app: System reset


    BLE app with command line interface example started.
    Press Tab to view all available commands.

    Thank you.

Children
Related