esp_bt_gap_get_remote_service_record() function
Start SDP to look up the service matching uuid on the remote device. This function should be called after esp_bluedroid_enable() completes successfully. esp_bt_gap_cb_t will be called with ESP_BT_GAP_RMT_SRVC_REC_EVT after service discovery ends
Return value
- ESP_OK : Succeed - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others