<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Not found GATT Service]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1412&amp;type=atom" />
	<updated>2021-11-11T14:26:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1412</id>
		<entry>
			<title type="html"><![CDATA[Not found GATT Service]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4347#p4347" />
			<content type="html"><![CDATA[<p>Hello,</p><p>While trying this application, I encountered a problem with the Bluetooth LE not appearing in Bluetooth Classic.<br />When I try to connect to my ESP32 this message is displayed: “Did not found GATT service”.</p><p>Configuration:<br />- Bluetooth<br />- ESP32 based board<br />- Bluetooth on chip<br />- Arduino IDE</p><p>Board log:<br /></p><div class="quotebox"><blockquote><p>[&nbsp; &nbsp; 0.885] Debug log started<br />[&nbsp; &nbsp; 0.886] Init ESP32 BLE on chip<br />[&nbsp; &nbsp; 1.637] BLE started<br />[&nbsp; &nbsp; 1.638] Client started<br />[&nbsp; &nbsp; 1.638] RemoteXY started<br />[&nbsp; &nbsp;99.049] BLE client connected<br />[&nbsp; 100.349] BLE client disconnected</p></blockquote></div><p>App log:<br /></p><div class="quotebox"><blockquote><p>15:15:34.971 App version 4.8.0.1, API 30<br />15:15:34.971 Device started<br />15:15:34.971 BLEconnection started<br />15:15:34.972 Connecting to BLE device XX:XX:XX:XX:XX:XX ...<br />15:15:35.396 Did not found GATT Service<br />15:15:35.402 Disconnect</p></blockquote></div><p>My code:<br /></p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// To switch from BLE and classic Bluetooth.
#define BLE

#ifdef BLE

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLE
#include &lt;BLEDevice.h&gt;

#else

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLUETOOTH
#include &lt;BluetoothSerial.h&gt;

#endif

#define REMOTEXY__DEBUGLOG

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME &quot;RemoteXY&quot;
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,4,0,0,0,28,0,13,13,1,
  6,0,9,39,45,45,2,26,2,1,
  21,15,22,11,2,26,31,31,79,78,
  0,79,70,70,0 };

// this structure defines all the variables and events of your control interface
struct {

    // input variables
  uint8_t rgb_1_r; // =0..255 Red color value
  uint8_t rgb_1_g; // =0..255 Green color value
  uint8_t rgb_1_b; // =0..255 Blue color value
  uint8_t switch_1; // =1 if switch ON and =0 if OFF

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)


/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

void setup()
{
  RemoteXY_Init ();
}

void loop()
{
  RemoteXY_Handler ();

  /*
  Serial.print(&quot;On: &quot;);
  Serial.print(RemoteXY.switch_1);
  Serial.print(&quot; ; R: &quot;);
  Serial.print(RemoteXY.rgb_1_r);
  Serial.print(&quot; ; G: &quot;);
  Serial.print(RemoteXY.rgb_1_g);
  Serial.print(&quot; ; B: &quot;);
  Serial.println(RemoteXY.rgb_1_b);
*/
}</code></pre></div><p>Does anyone have an idea to correct this problem?</p><p>Thank you in advance</p>]]></content>
			<author>
				<name><![CDATA[alban]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1993</uri>
			</author>
			<updated>2021-11-11T14:26:43Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4347#p4347</id>
		</entry>
</feed>
