Topic: VisuinoWithESP2
Hello RemoteXY community,
I'm trying to understand why my code isn't working, my first try was a success, everything worked perfectly, that's why I bought the Pro version because I saw a lot of potential in this application.
Now that my code has grown, I want to watch more data on my phone, but somehow connecting to the board doesn't work anymore.
This is my first code that works without any problems.
/*
-- New project --
This source code of graphical user interface
has been generated automatically by RemoteXY editor.
To compile this code using RemoteXY library 3.1.7 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.10.2 or later version;
- for iOS 1.8.2 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 //
//////////////////////////////////////////////
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLE
#include <BLEDevice.h>
#include <RemoteXY.h>
// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "RemoteXY"
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,4,0,8,0,22,0,15,31,1,
7,45,12,57,20,5,2,26,31,1,
68,18,3,12,58,28,8,122,135 };
// this structure defines all the variables and events of your control interface
struct {
// input variables
float edit_1;
// output variables
float onlineGraph_1_var1;
float onlineGraph_1_var2;
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
void setup()
{
RemoteXY_Init ();
// TODO you setup code
}
void loop()
{
RemoteXY_Handler ();
// TODO you loop code
// use the RemoteXY structure for data transfer
// do not call delay()
}
The second code I'm struggling with is this:
/*
-- Broofer --
This source code of graphical user interface
has been generated automatically by RemoteXY editor.
To compile this code using RemoteXY library 3.1.7 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.10.2 or later version;
- for iOS 1.8.2 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 //
//////////////////////////////////////////////
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLE
#include <BLEDevice.h>
#include <RemoteXY.h>
// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "Broofer"
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,2,0,77,0,216,0,15,28,1,
67,5,3,9,20,5,30,26,11,67,
5,3,19,20,5,30,26,11,67,5,
3,29,20,5,30,26,11,67,5,3,
40,20,5,30,26,11,67,5,36,29,
20,5,35,26,11,67,5,36,19,20,
5,5,26,11,7,53,4,61,20,5,
30,26,2,129,0,3,4,28,4,30,
90,111,110,101,32,49,32,66,114,111,
111,102,101,114,0,129,0,3,15,49,
4,30,90,111,110,101,32,50,0,129,
0,3,24,13,4,30,90,111,110,101,
32,51,0,129,0,3,35,13,4,30,
90,111,110,101,32,52,0,129,0,4,
55,17,4,31,83,101,116,32,112,111,
105,110,116,0,129,0,32,14,31,4,
14,76,101,105,115,116,117,110,103,32,
75,195,188,104,108,101,110,0,129,0,
32,25,30,4,35,76,101,105,115,116,
117,110,103,32,72,101,105,122,101,110,
0,67,5,33,61,20,5,30,26,11,
129,0,34,55,10,4,30,83,116,114,
111,109,0 };
// this structure defines all the variables and events of your control interface
struct {
// input variables
int16_t edit_1; // 32767.. +32767
// output variables
char text_1[11]; // string UTF8 end zero
char text_2[11]; // string UTF8 end zero
char text_3[11]; // string UTF8 end zero
char text_4[11]; // string UTF8 end zero
char text_5[11]; // string UTF8 end zero
char text_6[11]; // string UTF8 end zero
char text_7[11]; // string UTF8 end zero
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
void setup()
{
RemoteXY_Init ();
// TODO you setup code
}
void loop()
{
RemoteXY_Handler ();
// TODO you loop code
// use the RemoteXY structure for data transfer
// do not call delay()
}
Maybe someone has time to test it and give me a tip what I'm doing wrong...
Thank you.