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

central , server master vs peripheral, client, slave

Hi When using BLE events i'm usually confused which event to handle , for example GATTS_WRITE or GATTC_WRITE.. i don't know which is the server and the client ?

Any idea to differenciate between them ? I tested some apps and i read some documents ,, i arrived to this conclusion : MASTER=Server= Central Slave=Client=peripheral Is that True ?

Parents
  • Your Mobile is generally a GAP Central & your device[say smart sensor] is the GAP Peripheral at the time of establishing connection[adversitement].

    Once the connection is established, we denote them by GATT Client & GATT Server respectively.

    Master & Slave is just another way of saying the same.

    The client always asks for info from the server.

    I hope this helps...

  • Within a server, you can implement Read & Write characteristics, i.e your client can send data to a write characteristic & read data from a read characteristic.

    For example,in case of a heart rate service, you can read the heart beat value, but cannot write on it. Also, there are various ways with which characteristics can be read or written into..

Reply
  • Within a server, you can implement Read & Write characteristics, i.e your client can send data to a write characteristic & read data from a read characteristic.

    For example,in case of a heart rate service, you can read the heart beat value, but cannot write on it. Also, there are various ways with which characteristics can be read or written into..

Children
No Data
Related