I have always copied everything at the same tine. So with identical rest of the code -
This one does work and connects!
//////////////////////////////////////////////
// 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__ARDUINOBLE
#include <ArduinoBLE.h>
// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "BS_Nano_33_BLE_Sens"
#include <RemoteXY.h>
// RemoteXY GUI configuration
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 135 bytes
{ 255,0,0,23,0,128,0,19,0,0,0,66,83,32,78,97,110,111,32,51,
51,32,66,76,69,32,83,101,110,115,0,31,1,200,106,1,1,6,0,68,
10,19,119,53,50,8,36,135,82,111,108,108,32,91,194,176,93,0,80,105,
116,99,104,32,91,194,176,93,0,67,146,20,40,10,78,2,26,2,67,146,
41,40,10,78,2,26,3,67,146,62,40,10,78,2,26,2,65,147,83,13,
13,112,129,41,2,126,8,64,1,83,101,110,115,111,114,101,110,32,78,97,
110,111,32,51,51,32,66,76,69,32,83,101,110,115,0 };
// this structure defines all the variables and events of your control interface
struct {
// output variables
float onlineGraph_01_var1;
float onlineGraph_01_var2;
float value_01;
float value_02;
float value_03;
uint8_t led_01_r; // =0..255 LED Red brightness
uint8_t led_01_g; // =0..255 LED Green brightness
uint8_t led_01_b; // =0..255 LED Green brightness
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
This one – with just one additional Label – does not connect!
//////////////////////////////////////////////
// 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__ARDUINOBLE
#include <ArduinoBLE.h>
// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "BS_Nano_33_BLE_Sens"
#include <RemoteXY.h>
// RemoteXY GUI configuration
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 148 bytes
{ 255,0,0,23,0,141,0,19,0,0,0,66,83,32,78,97,110,111,32,51,
51,32,66,76,69,32,83,101,110,115,0,31,1,200,106,1,1,7,0,68,
10,19,119,53,50,8,36,135,82,111,108,108,32,91,194,176,93,0,80,105,
116,99,104,32,91,194,176,93,0,67,146,20,40,10,78,2,26,2,67,146,
41,40,10,78,2,26,3,67,146,62,40,10,78,2,26,2,65,147,83,13,
13,112,129,41,2,126,8,64,1,83,101,110,115,111,114,101,110,32,78,97,
110,111,32,51,51,32,66,76,69,32,83,101,110,115,0,129,60,84,36,12,
64,17,76,97,98,101,108,0 };
// this structure defines all the variables and events of your control interface
struct {
// output variables
float onlineGraph_01_var1;
float onlineGraph_01_var2;
float value_01;
float value_02;
float value_03;
uint8_t led_01_r; // =0..255 LED Red brightness
uint8_t led_01_g; // =0..255 LED Green brightness
uint8_t led_01_b; // =0..255 LED Green brightness
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////