<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — 'BluetoothSerial' was not declared in this scope]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1786&amp;type=atom" />
	<updated>2024-04-08T12:17:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1786</id>
		<entry>
			<title type="html"><![CDATA[Re: 'BluetoothSerial' was not declared in this scope]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5480#p5480" />
			<content type="html"><![CDATA[<p>There is some conflict with other library, Just delete arduino and all library and install new one. The problem gone</p>]]></content>
			<author>
				<name><![CDATA[attaponaerospace]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2738</uri>
			</author>
			<updated>2024-04-08T12:17:12Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5480#p5480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 'BluetoothSerial' was not declared in this scope]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5479#p5479" />
			<content type="html"><![CDATA[<p>I use esp32 version 2.0.14 / Arduino IDE 2.3.2</p><p>Success ran on Windows but on Linux found error both arduino ide 1.8.19 and 2.3.2</p><p>(Linux is Zorin Os 17)</p><p>THis is the code<br />//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// you can enable debug logging to Serial at 115200<br />//#define REMOTEXY__DEBUGLOG&nbsp; &nbsp; </p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__ESP32CORE_BLUETOOTH<br />#include &lt;BluetoothSerial.h&gt;</p><br /><p>// RemoteXY connection settings <br />#define REMOTEXY_BLUETOOTH_NAME &quot;onebotic2&quot;</p><br /><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =&nbsp; &nbsp;// 143 bytes<br />&nbsp; { 255,4,0,7,0,136,0,17,0,0,0,31,1,106,200,1,1,9,0,130,<br />&nbsp; 255,255,108,203,0,8,5,25,129,56,56,0,19,25,31,71,15,20,77,77,<br />&nbsp; 56,0,19,19,125,0,0,0,0,0,0,200,66,0,0,160,65,0,0,32,<br />&nbsp; 65,0,0,0,64,19,0,2,9,89,32,16,0,19,26,8,8,79,78,0,<br />&nbsp; 79,70,70,0,129,16,110,17,6,19,76,73,71,72,84,0,129,60,110,31,<br />&nbsp; 6,19,67,85,84,32,83,80,69,69,68,0,4,54,91,47,11,128,19,0,<br />&nbsp; 129,3,5,55,9,19,79,78,69,66,79,84,73,67,45,50,0,65,93,4,<br />&nbsp; 9,9,112 };<br />&nbsp; <br />// this structure defines all the variables and events of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; int8_t joy_main_x; // from -100 to 100}<br />&nbsp; int8_t joy_main_y; // from -100 to 100}<br />&nbsp; uint8_t btn_light; // =1 if switch ON and =0 if OFF<br />&nbsp; int8_t sld_cutspeed; // =0..100 slider position</p><p>&nbsp; &nbsp; // output variables<br />&nbsp; float meter_speed; // from 0 to 100<br />&nbsp; uint8_t led_red; // =0..255 LED Red brightness<br />&nbsp; uint8_t led_green; // =0..255 LED Green brightness<br />&nbsp; uint8_t led_blue; // =0..255 LED Green brightness</p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0</p><p>} RemoteXY;<br />#pragma pack(pop)</p><p>/////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />/////////////////////////////////////////////</p><br /><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init ();<br />&nbsp; Serial.begin(115200);<br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; RemoteXY.meter_speed = sqrt(0.95*RemoteXY.joy_main_y*RemoteXY.joy_main_y+0.3*RemoteXY.joy_main_x*RemoteXY.joy_main_x);<br />&nbsp; Serial.print(RemoteXY.joy_main_x);<br />&nbsp; Serial.print(&quot; &quot;);<br />&nbsp; Serial.print(RemoteXY.joy_main_y);<br />&nbsp; Serial.print(&quot; &quot;);<br />&nbsp; Serial.println(RemoteXY.meter_speed);<br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay(), use instead RemoteXY_delay() </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[attaponaerospace]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2738</uri>
			</author>
			<updated>2024-04-05T06:47:00Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5479#p5479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 'BluetoothSerial' was not declared in this scope]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5478#p5478" />
			<content type="html"><![CDATA[<p>I use esp32 version 2.0.14 / Arduino IDE 2.3.2</p><p>Success ran on Windows but on Linux found error both arduino ide 1.8.19 and 2.3.2</p><p>(Linux is Zorin Os 17)</p><p>THis is the code<br />//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// you can enable debug logging to Serial at 115200<br />//#define REMOTEXY__DEBUGLOG&nbsp; &nbsp; </p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__ESP32CORE_BLUETOOTH<br />#include &lt;BluetoothSerial.h&gt;</p><br /><p>// RemoteXY connection settings <br />#define REMOTEXY_BLUETOOTH_NAME &quot;onebotic2&quot;</p><br /><p>#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =&nbsp; &nbsp;// 143 bytes<br />&nbsp; { 255,4,0,7,0,136,0,17,0,0,0,31,1,106,200,1,1,9,0,130,<br />&nbsp; 255,255,108,203,0,8,5,25,129,56,56,0,19,25,31,71,15,20,77,77,<br />&nbsp; 56,0,19,19,125,0,0,0,0,0,0,200,66,0,0,160,65,0,0,32,<br />&nbsp; 65,0,0,0,64,19,0,2,9,89,32,16,0,19,26,8,8,79,78,0,<br />&nbsp; 79,70,70,0,129,16,110,17,6,19,76,73,71,72,84,0,129,60,110,31,<br />&nbsp; 6,19,67,85,84,32,83,80,69,69,68,0,4,54,91,47,11,128,19,0,<br />&nbsp; 129,3,5,55,9,19,79,78,69,66,79,84,73,67,45,50,0,65,93,4,<br />&nbsp; 9,9,112 };<br />&nbsp; <br />// this structure defines all the variables and events of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; int8_t joy_main_x; // from -100 to 100}<br />&nbsp; int8_t joy_main_y; // from -100 to 100}<br />&nbsp; uint8_t btn_light; // =1 if switch ON and =0 if OFF<br />&nbsp; int8_t sld_cutspeed; // =0..100 slider position</p><p>&nbsp; &nbsp; // output variables<br />&nbsp; float meter_speed; // from 0 to 100<br />&nbsp; uint8_t led_red; // =0..255 LED Red brightness<br />&nbsp; uint8_t led_green; // =0..255 LED Green brightness<br />&nbsp; uint8_t led_blue; // =0..255 LED Green brightness</p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0</p><p>} RemoteXY;<br />#pragma pack(pop)</p><p>/////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />/////////////////////////////////////////////</p><br /><br /><p>void setup() <br />{<br />&nbsp; RemoteXY_Init ();<br />&nbsp; Serial.begin(115200);<br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; RemoteXY.meter_speed = sqrt(0.95*RemoteXY.joy_main_y*RemoteXY.joy_main_y+0.3*RemoteXY.joy_main_x*RemoteXY.joy_main_x);<br />&nbsp; Serial.print(RemoteXY.joy_main_x);<br />&nbsp; Serial.print(&quot; &quot;);<br />&nbsp; Serial.print(RemoteXY.joy_main_y);<br />&nbsp; Serial.print(&quot; &quot;);<br />&nbsp; Serial.println(RemoteXY.meter_speed);<br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay(), use instead RemoteXY_delay() </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[attaponaerospace]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2738</uri>
			</author>
			<updated>2024-04-05T06:45:56Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5478#p5478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 'BluetoothSerial' was not declared in this scope]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5476#p5476" />
			<content type="html"><![CDATA[<p>Please share the complete code. <br />What version of the ESP32 library are you using? 2.x.x or 3.x.x?</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2024-04-04T11:32:16Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5476#p5476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA['BluetoothSerial' was not declared in this scope]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5473#p5473" />
			<content type="html"><![CDATA[<p>I got error that RemoteXY/src/RemoteXYStream_BluetoothSerial.h:13:5: error: &#039;BluetoothSerial&#039; was not declared in this scope<br />I use esp32 with bluetooth classic</p>]]></content>
			<author>
				<name><![CDATA[attaponaerospace]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2738</uri>
			</author>
			<updated>2024-04-02T04:01:56Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5473#p5473</id>
		</entry>
</feed>
