2016-12-01 20:20:22 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								GATT CLIENT API
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								===============
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Application Example
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-------------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-07-01 19:21:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Check :example: `bluetooth/bluedroid/ble`  folder in ESP-IDF examples, which contains the following demos and their tutorials:
 
							 
						 
					
						
							
								
									
										
										
										
											2016-12-01 20:20:22 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-27 14:44:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  This is a GATT client demo and its tutorial. This demo can scan for devices, connect to the GATT server and discover its services.
  
						 
					
						
							
								
									
										
										
										
											2018-01-11 20:24:18 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-07-01 19:21:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    -  :example: `bluetooth/bluedroid/ble/gatt_client` 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    -  :example_file:`GATT Client Example Walkthrough <bluetooth/bluedroid/ble/gatt_client/tutorial/Gatt_Client_Example_Walkthrough.md>` 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 20:24:18 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-27 14:44:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  This is a multiple connection demo and its tutorial. This demo can connect to multiple GATT server devices and discover their services.
  
						 
					
						
							
								
									
										
										
										
											2018-01-11 20:24:18 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-07-01 19:21:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    -  :example: `bluetooth/bluedroid/ble/gattc_multi_connect` 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    -  :example_file:`GATT Client Multi-connection Example Walkthrough <bluetooth/bluedroid/ble/gattc_multi_connect/tutorial/Gatt_Client_Multi_Connection_Example_Walkthrough.md>` 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 20:24:18 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  This is a BLE SPP-Like demo. This demo, which acts as a GATT client, can receive data from UART and then send the data to the peer device automatically.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-07-01 19:21:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    -  :example: `bluetooth/bluedroid/ble/ble_spp_client` 
 
							 
						 
					
						
							
								
									
										
										
										
											2016-12-01 20:20:22 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								API Reference
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-11-13 11:46:16 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								..  include-build-file ::  inc/esp_gattc_api.inc
  
						 
					
						
							
								
									
										
										
										
											2016-12-01 20:20:22 +08:00