<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Added Real Time to my project - now connect_flag is removed]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=2103</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=2103&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Added Real Time to my project - now connect_flag is removed.]]></description>
		<lastBuildDate>Wed, 14 Jan 2026 02:29:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Added Real Time to my project - now connect_flag is removed]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=6318#p6318</link>
			<description><![CDATA[<p>I have a stable setup that&#039;s been running. I decided to add Real Time to it. The only option changed is that it&#039;s hidden.</p><p>When I imported the code to my Arduino, I get compiling errors. I found that the &quot;uint8_t connect_flag&quot; was removed when Real Time was added.</p><p>I forced &quot;uint8_t connect_flag&quot; back into the code and it now complies, but the connect_flag doesn&#039;t work.</p><p>It&#039;s like I get to use one or the other, but not both.</p><p>Is it just me, or is there an issue here?</p><p>Before adding Real Time (this runs okay):</p><div class="codebox"><pre><code>/*
   -- HP Meter Graph 7 --
   
   To compile this code using RemoteXY library 4.1.8 or later version 
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.18.03 or later version;
     - for iOS 1.14.1 or later version;
    
   To interact with the GUI, please refer to the manual: 
   https://remotexy.com/ru/help/code/interaction/

   This source code was automatically generated by the RemoteXY editor and 
   is an example for the RemoteXY library. 
   Licensed under the MIT License. See the LICENSE file in the RemoteXY library
   root (https://github.com/RemoteXY/RemoteXY-Arduino-library) for full license 
   details.             
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// you can enable debug logging to Serial at 115200
//#define REMOTEXY__DEBUGLOG    

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__HARDSERIAL


// RemoteXY connection settings 
#define REMOTEXY_SERIAL Serial2
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_ACCESS_PASSWORD &quot;1234&quot;


#include &lt;RemoteXY.h&gt;

// RemoteXY GUI configuration  
#pragma pack(push, 1)  
uint8_t const PROGMEM RemoteXY_CONF_PROGMEM[] =   // 640 bytes V19 
  { 255,38,0,24,0,121,2,19,0,0,0,72,80,32,77,101,116,101,114,32,
  66,117,100,100,121,0,24,1,200,116,4,2,3,2,2,20,0,68,1,23,
  198,91,49,25,36,86,111,108,116,115,0,67,161,11,31,12,78,36,24,3,
  67,23,14,22,8,78,36,24,3,67,69,14,22,8,78,36,24,3,1,99,
  14,28,7,9,9,31,82,101,115,101,116,32,77,105,110,92,47,77,97,120,
  0,14,6,6,26,7,77,1,94,26,13,33,6,27,7,77,7,94,26,7,
  61,6,37,7,69,64,31,12,11,129,63,1,32,5,64,17,80,67,73,32,
  85,32,78,117,109,98,101,114,0,129,15,1,11,5,64,17,68,97,116,101,
  0,129,40,1,12,5,64,17,84,105,109,101,0,129,162,2,34,6,64,17,
  76,105,118,101,32,82,101,97,100,105,110,103,0,129,192,13,6,8,64,80,
  86,0,129,55,15,14,7,64,17,77,105,110,58,0,129,6,15,16,7,64,
  17,77,97,120,58,0,129,45,16,4,5,64,66,86,0,129,92,16,4,5,
  64,66,86,0,1,99,6,28,7,9,3,133,83,97,118,101,32,84,111,32,
  70,105,108,101,0,131,128,14,28,7,9,2,2,31,77,97,105,110,32,77,
  101,110,117,0,166,10,128,6,28,7,57,35,133,31,66,75,71,68,32,83,
  116,111,112,0,31,66,75,71,68,32,82,117,110,0,5,0,130,71,7,59,
  67,14,62,131,81,52,40,14,2,17,2,31,71,114,97,112,104,0,169,129,
  37,82,128,27,64,17,77,97,105,110,32,80,97,103,101,0,131,81,33,40,
  14,2,17,2,31,83,104,117,110,116,115,0,154,131,81,14,40,14,2,17,
  2,31,82,97,119,32,77,101,116,101,114,0,106,14,0,130,20,47,158,16,
  30,35,130,20,63,158,28,30,176,131,81,99,40,14,2,77,2,31,77,97,
  105,110,32,77,101,110,117,0,166,129,45,1,112,12,64,78,83,104,117,110,
  116,32,65,109,112,115,32,82,101,97,100,105,110,103,0,67,43,16,90,25,
  78,2,24,4,129,141,52,22,8,64,17,79,104,109,115,0,129,141,67,32,
  8,64,17,70,83,32,65,109,112,115,0,129,141,81,18,8,64,17,86,92,
  47,70,83,0,129,25,52,53,8,64,17,82,101,115,105,115,116,111,114,32,
  86,97,108,117,101,58,0,7,86,50,47,11,78,64,2,26,7,7,86,65,
  47,11,78,64,2,26,1,7,86,78,47,11,78,64,2,26,4,129,29,74,
  49,8,64,17,83,104,117,110,116,32,86,97,108,117,101,115,58,0,129,133,
  20,14,21,64,78,65,0,3,0,67,4,32,192,41,106,31,1,7,129,56,
  3,88,12,64,17,82,97,119,32,77,101,116,101,114,32,82,101,97,100,0,
  131,79,91,40,14,2,17,2,31,77,97,105,110,32,77,101,110,117,0,166 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t page_graph; // =1 if page is visible, else =0, from 0 to 1
  uint8_t page_main; // =1 if page is visible, else =0, from 0 to 1
  uint8_t page_shunt; // =1 if page is visible, else =0, from 0 to 1
  uint8_t page_raw; // =1 if page is visible, else =0, from 0 to 1
  uint8_t resetButton; // =1 if button pressed, else =0, from 0 to 1
  int32_t editDate_01; // days since the Unix Epoch (Jan 1 1970)
  int32_t editTime_01; // milliseconds since midnight, from 0 to 86399000
  char uNumber[11]; // string UTF8 end zero
  uint8_t SaveButton; // =1 if button pressed, else =0, from 0 to 1
  uint8_t BkgdSwitch; // =1 if state is ON, else =0, from 0 to 1
  float shuntResistorInput;
  float shuntAmpInput;
  float shuntVoltInput;

    // output variables
  float meterReading;
  float liveReading;
  float maxReading;
  float minReading;
  float shuntReading;
  float rawMeter;

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

} RemoteXY;   
#pragma pack(pop)
 
/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////</code></pre></div><p>After adding Real Time (note connect-flag gets removed at the bottom):</p><div class="codebox"><pre><code>/*
   -- HP Meter Graph 7 --
   
   To compile this code using RemoteXY library 4.1.8 or later version 
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.18.03 or later version;
     - for iOS 1.14.1 or later version;
    
   To interact with the GUI, please refer to the manual: 
   https://remotexy.com/ru/help/code/interaction/

   This source code was automatically generated by the RemoteXY editor and 
   is an example for the RemoteXY library. 
   Licensed under the MIT License. See the LICENSE file in the RemoteXY library
   root (https://github.com/RemoteXY/RemoteXY-Arduino-library) for full license 
   details.             
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// you can enable debug logging to Serial at 115200
//#define REMOTEXY__DEBUGLOG    

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__HARDSERIAL


// RemoteXY connection settings 
#define REMOTEXY_SERIAL Serial2
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_ACCESS_PASSWORD &quot;1234&quot;


#include &lt;RemoteXY.h&gt;

// RemoteXY GUI configuration  
#pragma pack(push, 1)  
uint8_t const PROGMEM RemoteXY_CONF_PROGMEM[] =   // 650 bytes V21 
  { 254,38,0,24,0,1,0,0,0,127,2,21,0,0,0,72,80,32,77,101,
  116,101,114,32,66,117,100,100,121,0,24,1,200,116,4,2,3,2,2,21,
  0,68,1,23,198,91,49,25,36,86,111,108,116,115,0,67,161,11,31,12,
  78,36,24,3,67,23,14,22,8,78,36,24,3,67,69,14,22,8,78,36,
  24,3,1,99,14,28,7,9,9,31,82,101,115,101,116,32,77,105,110,92,
  47,77,97,120,0,14,6,6,26,7,77,1,94,26,13,33,6,27,7,77,
  7,94,26,7,61,6,37,7,69,64,31,12,11,129,63,1,32,5,64,17,
  80,67,73,32,85,32,78,117,109,98,101,114,0,129,15,1,11,5,64,17,
  68,97,116,101,0,129,40,1,12,5,64,17,84,105,109,101,0,129,162,2,
  34,6,64,17,76,105,118,101,32,82,101,97,100,105,110,103,0,129,192,13,
  6,8,64,80,86,0,129,55,15,14,7,64,17,77,105,110,58,0,129,6,
  15,16,7,64,17,77,97,120,58,0,129,45,16,4,5,64,66,86,0,129,
  92,16,4,5,64,66,86,0,1,99,6,28,7,9,3,133,83,97,118,101,
  32,84,111,32,70,105,108,101,0,131,128,14,28,7,9,2,2,31,77,97,
  105,110,32,77,101,110,117,0,166,10,128,6,28,7,57,35,133,31,66,75,
  71,68,32,83,116,111,112,0,31,66,75,71,68,32,82,117,110,0,193,43,
  59,20,20,3,5,0,130,71,7,59,67,14,62,131,81,52,40,14,2,17,
  2,31,71,114,97,112,104,0,169,129,37,82,128,27,64,17,77,97,105,110,
  32,80,97,103,101,0,131,81,33,40,14,2,17,2,31,83,104,117,110,116,
  115,0,154,131,81,14,40,14,2,17,2,31,82,97,119,32,77,101,116,101,
  114,0,106,14,0,130,20,47,158,16,30,35,130,20,63,158,28,30,176,131,
  81,99,40,14,2,77,2,31,77,97,105,110,32,77,101,110,117,0,166,129,
  45,1,112,12,64,78,83,104,117,110,116,32,65,109,112,115,32,82,101,97,
  100,105,110,103,0,67,43,16,90,25,78,2,24,4,129,141,52,22,8,64,
  17,79,104,109,115,0,129,141,67,32,8,64,17,70,83,32,65,109,112,115,
  0,129,141,81,18,8,64,17,86,92,47,70,83,0,129,25,52,53,8,64,
  17,82,101,115,105,115,116,111,114,32,86,97,108,117,101,58,0,7,86,50,
  47,11,78,64,2,26,7,7,86,65,47,11,78,64,2,26,1,7,86,78,
  47,11,78,64,2,26,4,129,29,74,49,8,64,17,83,104,117,110,116,32,
  86,97,108,117,101,115,58,0,129,133,20,14,21,64,78,65,0,3,0,67,
  4,32,192,41,106,31,1,7,129,56,3,88,12,64,17,82,97,119,32,77,
  101,116,101,114,32,82,101,97,100,0,131,79,91,40,14,2,17,2,31,77,
  97,105,110,32,77,101,110,117,0,166 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t page_graph; // =1 if page is visible, else =0, from 0 to 1
  uint8_t page_main; // =1 if page is visible, else =0, from 0 to 1
  uint8_t page_shunt; // =1 if page is visible, else =0, from 0 to 1
  uint8_t page_raw; // =1 if page is visible, else =0, from 0 to 1
  uint8_t resetButton; // =1 if button pressed, else =0, from 0 to 1
  int32_t editDate_01; // days since the Unix Epoch (Jan 1 1970)
  int32_t editTime_01; // milliseconds since midnight, from 0 to 86399000
  char uNumber[11]; // string UTF8 end zero
  uint8_t SaveButton; // =1 if button pressed, else =0, from 0 to 1
  uint8_t BkgdSwitch; // =1 if state is ON, else =0, from 0 to 1
  float shuntResistorInput;
  float shuntAmpInput;
  float shuntVoltInput;

    // output variables
  float meterReading;
  float liveReading;
  float maxReading;
  float minReading;
  float shuntReading;
  float rawMeter;

    // complex variables
  RemoteXYType_RealTime realTime_01; // use .getTimeStamp(), .getTime()

} RemoteXY;   
#pragma pack(pop)
 
/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ytvytv1)]]></author>
			<pubDate>Wed, 14 Jan 2026 02:29:06 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=6318#p6318</guid>
		</item>
	</channel>
</rss>
