This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how can we send a string over bluetooth

hello,

inorder to send a string over ble from a slave to master or master to slave what is to be done?? is there any function for us to pass the string??

Parents
  • Hello There, Since I had a lot of difficulty with this I will try my best to explain everything I know in the easiest way I could :)

    For Bluetooth Low Energy (BLE) communication you have to follow a certain set of rules and regulations. Mainly GAP (for detecting the device and the initial handshake between the device and the client/ cellphone ) and GATT (for a full back and forth communication between the device and the slave) Take a look at this:

    learn.adafruit.com/.../gap

    It will help if you get yourself familiar with the term "protocol stack."

    www.youtube.com/watch

    Once you are done there take a look at the Nordic tutorial :

    devzone.nordicsemi.com/.../

    At the end what is responsible for sending information is the following function:

    ble_nus_string_send(&m_nus, data_array, index);

Reply
  • Hello There, Since I had a lot of difficulty with this I will try my best to explain everything I know in the easiest way I could :)

    For Bluetooth Low Energy (BLE) communication you have to follow a certain set of rules and regulations. Mainly GAP (for detecting the device and the initial handshake between the device and the client/ cellphone ) and GATT (for a full back and forth communication between the device and the slave) Take a look at this:

    learn.adafruit.com/.../gap

    It will help if you get yourself familiar with the term "protocol stack."

    www.youtube.com/watch

    Once you are done there take a look at the Nordic tutorial :

    devzone.nordicsemi.com/.../

    At the end what is responsible for sending information is the following function:

    ble_nus_string_send(&m_nus, data_array, index);

Children
No Data
Related