Topic: ESP32, can't connect
Hello. This is my first try playing with an ESP32. I can't get it to connect. I can get it to work with a couple sample programs OK. I'm not sure how to trouble shoot it.
Board is a Wroom 32D. I'm using the Arduino IDE. I've tried all the different boards that can be selected. The 2 that seem to have worked with sample programs are ESP Dev module and ESP32-Wroom DA module.
This is program i'm trying to use. I cut out the header to save space here. It isn't totaly correct for my needs, but i was just trying to get it connect before i worried about that.
Hope someone can point me in the right direction.
Thanks.
Marty
//////////////////////////////////////////////
// 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_POINT
#include <WiFi.h>
// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID "RemoteXY"
#define REMOTEXY_WIFI_PASSWORD "12345678"
#define REMOTEXY_SERVER_PORT 6377
#define REMOTEXY_ACCESS_PASSWORD "12345678"
#include <RemoteXY.h>
// RemoteXY GUI configuration
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 69 bytes
{ 255,3,0,0,0,62,0,19,0,0,0,114,101,109,111,116,101,88,89,0,
8,1,106,200,1,1,3,0,4,21,11,23,176,0,2,26,10,62,134,24,
24,48,4,1,31,70,87,68,0,31,82,69,86,0,1,65,33,24,24,0,
1,31,69,45,115,116,111,112,0 };
// this structure defines all the variables and events of your control interface
struct {
// input variables
int8_t slider_01; // from 0 to 100
uint8_t pushSwitch_01; // =1 if state is ON, else =0
uint8_t button_01; // =1 if button pressed, else =0
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
#define PIN_PUSHSWITCH_01 7
void setup()
{
RemoteXY_Init ();
pinMode (PIN_PUSHSWITCH_01, OUTPUT);
// TODO you setup code
}
void loop()
{
RemoteXY_Handler ();
digitalWrite(PIN_PUSHSWITCH_01, (RemoteXY.pushSwitch_01==0)?LOW:HIGH);
// TODO you loop code
// use the RemoteXY structure for data transfer
// do not call delay(), use instead RemoteXY_delay()
}