# GATT configuration parameters To configure the GATT server and client functions, use the server, client, and scan parameters. ## GATT server configuration parameters The two types of server configuration parameters used to [perform Bluetooth Low Energy GATT server functions](https://docs.qualcomm.com/doc/80-70018-13/topic/perform_ble_gatt_server_functions.html#perform-ble-gatt-server-functions) are: advertiser and server parameters. These configuration parameters are managed through `AdvertiserConfigFile.txt` and `ServerConfigFile.txt` files, respectively. `AdvertiserConfigFile.txt` The following table lists the possible values of each advertisement parameter in the `AdvertiserConfigFile.txt` file. | Parameters | Values | | --- | --- | | `TxPower` | **Legacy:**



>
>
>
>
> **Extended:**
>
> | | `LegacyFlag` | | | `PeriodicFlag` | | | `ConnectableFlag` | | | `ScannableFlag` | | | `AnonymousFlag` | | | `IncludePower` | | | `PrimaryPhy` | | | `SecondaryPhy` | | | `Interval` | | | `TimeOutLegacy` | | | `AdvertiseMode` |

The advertisement interval is selected based on the advertiser mode as follows:

| | `BLEBtName` | The name to be displayed for that particular advertiser set. | The following snippet shows an example of an advertisement set: *******************AdvertisingSet1*************** TxPower:1 LegacyFlag:1 PeriodicFlag:0 ConnectableFlag:1 ScannableFlag:1 AnonymousFlag:0 IncludePower:1 PrimaryPhy:1 SecondaryPhy:1 Interval: 320 TimeOutLegacy:0 AdvertiseMode:1 BLEBtName:Adv1 Copy to clipboard `ServerConfigFile.txt` The following table lists the possible values of each service parameter in the `ServerConfigFile.txt` file. | Parameter | Description | | --- | --- | | `service uuid` | The service ID. A server can have multiple services. | | `characteristic uuid` | The ID of the characteristic. A service can have multiple characteristics. A characteristic can have properties and permissions. | | `characteristic properties` | The properties of the characteristic.



>
>
> Combine the following characteristic properties with a logical OR argument, as required:
>
>
> PROPERTY_BROADCAST = 0x01;
> PROPERTY_READ = 0x02;
> PROPERTY_WRITE_NO_RESPONSE = 0x04;
> PROPERTY_WRITE = 0x08;
> PROPERTY_NOTIFY = 0x10;
> PROPERTY_INDICATE = 0x20;
> PROPERTY_SIGNED_WRITE = 0x40;
> PROPERTY_EXTENDED_PROPS = 0x80;
> Copy to clipboard | | `characteristic permissions` | The permissions of the characteristic.



>
>
> Combine the following characteristic permissions with a logical OR argument, as required:
>
>
> PERMISSION_READ = 0x01;
> PERMISSION_READ_ENCRYPTED = 0x02;
> PERMISSION_READ_ENCRYPTED_MITM = 0x04;
> PERMISSION_WRITE = 0x10;
> PERMISSION_WRITE_ENCRYPTED = 0x20;
> PERMISSION_WRITE_ENCRYPTED_MITM = 0x40;
> PERMISSION_WRITE_SIGNED = 0x80;
> PERMISSION_WRITE_SIGNED_MITM = 0x100;
> Copy to clipboard | | `descriptor uuid` | The ID of the descriptor. A characteristic can have multiple descriptors. A descriptor can have permissions. | | `descriptor permissions` | The permissions of the descriptor. | The following snippet shows an example of a service in the GATT server. **************Server1************* Service1:[service uuid],[characteristic uuid],[characteristic properties],[characteristic permissions],[descriptor uuid],[descriptor permissions] Service1:00001200-0000-1000-8000-00805f9b34fb, 00001101-0000-1000-8000-00805f9b34fb,26,31,00002a06-0000-1000-8000-00805f9b34fb,17 ManufacturerId:0 ManufacturerData:AAAA **************End of service************* Copy to clipboard ## GATT client configuration parameters The following table lists the connection parameters used to configure the GATT client. | Parameter | Values | Notes | | --- | --- | --- | | `isAuto` | | If this parameter is set to `1`, ensure that the devices are bonded for auto connection. | | `isOpportunistic` | | If this parameter is set to `1`, it doesn’t start the connection if it’s not already present. | | `Tx_Phy` | | ̶̶ | | `Rx_Phy` | | ̶̶ | | `Phy_Opt:00` | | ̶̶ | | `Mtu_Size` | | ̶̶ | ## Scan settings The following table lists the scan settings used to configure the GATT client. | Scan types | Values | Notes | | --- | --- | --- | | `1: Scan_mode` |

**Regular scan:**



**Batch scan:**

| ̶̶ | | `2: CallbackType` | | ̶̶ | | `3: ResultType` | | ̶̶ | | `4: ScanPhy` | | Currently, it’s hard coded to 255 in the application code. | | `5: Legacy` | | ̶̶ | | `6: ReportDelay` | | ̶̶ | | `7: MatchMode` | | ̶̶ | | `8: NumOfAdvMatches` | | ̶̶ | Last Published: Apr 02, 2025 [Previous Topic Perform Bluetooth Low Energy GATT client functions](https://docs.qualcomm.com/bundle/publicresource/80-70018-13/topics/perform_ble_gatt_client_functions.md) [Next Topic Advanced Audio Distribution Profile](https://docs.qualcomm.com/bundle/publicresource/80-70018-13/topics/set-up-a2dp.md)