Skip to content

How to add two Characteristics for gatt_server_io #147

Answered by YFJiang
YFJiang asked this question in Q&A
Discussion options

You must be logged in to vote

I use the following way:

let (rx_char_control, rx_char_handle) = characteristic_control();
let (tx_char_control, tx_char_handle) = characteristic_control();

let app = Application {
    services: vec![Service {
        uuid: SERVICE_UUID,
        primary: true,
        characteristics: vec![
            Characteristic {
                uuid: WRITE_CHARACTERISTIC_UUID,
                write: Some(CharacteristicWrite {
                    write: true,
                    //write_without_response: true,
                    method: CharacteristicWriteMethod::Io,
                    ..Default::default()
                }),
                control_handle: rx_char_handle,
                ..Defau…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YFJiang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #146 on June 26, 2024 18:12.