I am sending you below the program which presents the problem. It's as if the variable "RemoteXY.page_02" changed to 1 by itself???
Simply include your SSID and password to test
#include <Arduino.h>
/*
-- PCN_ESP32_S3_SerreJardin4_test --
This source code of graphical user interface
has been generated automatically by RemoteXY editor.
To compile this code using RemoteXY library 3.1.13 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.13.13 or later version;
- for iOS 1.10.3 or later version;
This source code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
*/
//////////////////////////////////////////////
// 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__WIFI_CLOUD
#include <WiFi.h>
// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID "Your SSID"
#define REMOTEXY_WIFI_PASSWORD "Your Password"
#define REMOTEXY_CLOUD_SERVER "cloud.remotexy.com"
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN "52b47a94fbc08e6568bc9d0a9f0c6df9"
#include <RemoteXY.h>
// RemoteXY GUI configuration
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 576 bytes
{ 255,17,0,56,0,57,2,17,0,0,0,123,1,106,200,2,7,7,17,0,
67,15,11,38,8,4,1,123,26,129,13,19,80,12,1,65,114,114,111,115,
97,103,101,32,83,101,114,114,101,0,67,16,38,18,9,6,1,123,7,67,
52,39,16,9,6,1,123,7,129,36,39,10,9,17,194,176,67,0,129,74,
39,8,10,17,37,0,2,23,55,52,19,0,120,24,0,1,79,78,0,79,
70,70,0,129,21,82,56,10,1,78,105,118,101,97,117,32,67,117,118,101,
0,67,55,92,18,9,6,1,123,11,129,24,118,30,8,1,69,116,97,116,
32,69,86,32,58,0,129,23,132,51,9,1,69,116,97,116,32,80,111,109,
112,101,32,58,0,129,12,154,48,7,1,78,105,118,101,97,117,32,66,97,
116,116,101,114,105,101,0,71,66,147,25,25,56,17,2,24,135,0,0,0,
0,0,0,200,66,0,0,160,65,0,0,32,65,0,0,0,64,24,0,1,
0,0,0,0,0,0,12,66,131,59,177,40,14,2,66,65,134,82,195,169,
103,108,97,103,101,115,0,6,66,79,70,21,56,1,178,24,70,57,113,15,
15,16,26,135,0,70,80,129,15,15,16,26,135,0,22,0,129,6,47,57,
7,1,84,101,109,112,115,32,65,114,114,111,115,97,103,101,32,58,32,0,
129,1,59,60,7,1,84,101,109,112,115,32,70,99,116,32,80,111,109,112,
101,32,58,0,129,88,46,12,8,1,77,110,0,129,88,59,12,8,1,77,
110,0,129,88,99,12,8,1,77,110,0,129,88,110,12,8,1,77,110,0,
129,57,99,6,8,1,72,0,129,3,87,100,7,1,82,195,169,103,108,97,
103,101,32,72,101,117,114,101,32,100,101,32,109,105,115,101,32,101,110,32,
86,101,105,108,108,101,0,129,5,99,28,7,1,68,195,169,112,97,114,116,
32,32,58,32,0,129,3,110,30,7,1,80,101,110,100,97,110,116,32,58,
0,129,57,110,6,8,1,72,0,131,6,173,53,13,2,17,2,134,66,97,
115,101,0,9,7,65,46,21,8,52,2,26,2,7,65,58,21,8,52,2,
26,2,7,34,98,21,8,52,2,26,2,7,34,110,21,8,52,2,26,2,
7,66,98,21,8,52,2,26,2,7,66,110,21,8,52,2,26,2,129,13,
129,29,9,17,80,111,109,112,101,0,129,58,129,26,9,17,86,97,110,110,
101,0,2,6,141,39,15,0,120,26,31,31,79,78,0,79,70,70,0,2,
51,140,39,15,0,120,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 page_main; // =1 if page is visible, else =0
uint8_t page_02; // =1 if page is visible, else =0
uint8_t switch_1; // =1 if switch ON and =0 if OFF
int16_t TempsArrosageMn; // -32768 .. +32767
int16_t TempsFctPompeMn; // -32768 .. +32767
int16_t VeilleHeure; // -32768 .. +32767
int16_t PendantHeure; // -32768 .. +32767
int16_t VeilleMn; // -32768 .. +32767
int16_t PendantMn; // -32768 .. +32767
uint8_t ManuPompe; // =1 if switch ON and =0 if OFF
uint8_t ManuVanne; // =1 if switch ON and =0 if OFF
// output variables
char DateEtHeureDuJour[26]; // string UTF8 end zero
char Temperature[7]; // string UTF8 end zero
char Humidite[7]; // string UTF8 end zero
char Text_NivCuve[11]; // string UTF8 end zero
int16_t NiveauBat; // from 0 to 100
int8_t NiveauCuve; // from 0 to 100
uint8_t VoyantEV; // from 0 to 1
uint8_t VoyantPompe; // from 0 to 1
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
//Var
#define CommandePompe 10
void setup()
{
RemoteXY_Init ();
RemoteXY.page_main = 1;
RemoteXY.page_02 = 0;
// TODO you setup code
pinMode (CommandePompe, OUTPUT);
}
void loop()
{
RemoteXY_Handler ();
// TODO you loop code
// use the RemoteXY structure for data transfer
// do not call delay(), use instead RemoteXY_delay()
if (RemoteXY.page_02=1)
if(RemoteXY.ManuPompe !=0) digitalWrite(CommandePompe , HIGH);
// RemoteXY.page_main =0;
if(RemoteXY.page_main=1)
// RemoteXY.page_02 = 0;
RemoteXY_delay(500);
}