1

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() 

}

2

Re: esp8266 connects not esp32u

Make sure you're using the latest version of the ESP32 board—v3.3.x.
Try enabling debug output to the serial port by uncommenting

#define REMOTEXY__DEBUGLOG

This will allow you to see if your board is connecting to WiFi and then to the cloud server.

3

Re: esp8266 connects not esp32u

I cant compile the esp32 with any version above board 1.0.6.
im running arduino ide 1.8.19
seems like everywhere i turn the net is trying to stop me using my windows 7 Ultimata....I dont like it....it winds my up having to upgrade....

whats my work around please ?

4

Re: esp8266 connects not esp32u

Unfortunately, ESP32 kernel version 1.06 is very outdated. We are unable to support it. You need to use version 3.3.x.