Topic: esp8266 connects not esp32u
both my esp32u will not connect to the cloud but my esp8266 does with same code,
is there something missing here for the esp32u to work? its a simple switch.....
//////////////////////////////////////////////
// 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 "starlinkbro"
#define REMOTEXY_WIFI_PASSWORD "kermet765"
#define REMOTEXY_CLOUD_SERVER "cloud.remotexy.com"
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN "02400487f95a641886bbc6c7526963e0"
#include <RemoteXY.h>
// RemoteXY GUI configuration
#pragma pack(push, 1)
uint8_t const PROGMEM RemoteXY_CONF_PROGMEM[] = // 37 bytes V19
{ 255,1,0,0,0,30,0,19,0,0,0,0,31,1,106,200,1,1,1,0,
2,31,11,44,22,0,2,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 switch_01; // =1 if switch ON and =0 if OFF, from 0 to 1
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
#define PIN_SWITCH_01 2
void setup()
{
RemoteXY_Init (); // initialization by macros
pinMode (PIN_SWITCH_01, OUTPUT);
// TODO you setup code
}
void loop()
{
RemoteXYEngine.handler ();
digitalWrite(PIN_SWITCH_01, (RemoteXY.switch_01==0)?LOW:HIGH);
// TODO you loop code
// use the RemoteXY structure for data transfer
// do not call delay(), use instead RemoteXYEngine.delay()
}