1

Topic: Error ECONNREFUSED

Hello, I need help when connecting to the application, I get this error
The only thing I need is that when I press the button, the servomotor turns and the food passes
i use esp8266
Code

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT
#include <RemoteXY.h>
#include <RemoteXYApi.h>
#include <RemoteXYApiData.h>
#include <RemoteXYCloudServer.h>
#include <RemoteXYComm.h>
#include <RemoteXYComm_AT.h>
#include <RemoteXYComm_ESP8266.h>
#include <RemoteXYComm_Ethernet.h>
#include <RemoteXYComm_WiFi.h>
#include <RemoteXYConnection.h>
#include <RemoteXYConnectionCloud.h>
#include <RemoteXYConnectionServer.h>
#include <RemoteXYConnectionStream.h>
#include <RemoteXYDebugLog.h>
#include <RemoteXYFunc.h>
#include <RemoteXYStream.h>
#include <RemoteXYStream_BLEDevice.h>
#include <RemoteXYStream_BLEPeripheral.h>
#include <RemoteXYStream_BluetoothSerial.h>
#include <RemoteXYStream_CDCSerial.h>
#include <RemoteXYStream_HardSerial.h>
#include <RemoteXYStream_SoftSerial.h>
#include <RemoteXYThread.h>
#include <RemoteXYWire.h>
#include <RemoteXYWireCloud.h>
#include <RemoteXYWireStream.h>

// RemoteXY connection settings
#define REMOTEXY__DEBUGLOG                 
#define REMOTEXY__DEBUGLOG_SERIAL Serial 
#define REMOTEXY__DEBUGLOG_SPEED 115200
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_WIFI_SSID "RemoteXY"
#define REMOTEXY_WIFI_PASSWORD "12345678"
#define REMOTEXY_SERVER_PORT 6377


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 68 bytes
  { 255,1,0,0,0,61,0,16,168,0,129,0,17,5,18,6,48,65,108,105,
  109,101,110,116,97,32,97,32,116,117,32,109,97,115,99,111,116,97,0,1,
  1,17,19,66,27,2,31,80,117,108,115,97,32,112,97,114,97,32,97,108,
  105,109,101,110,116,97,114,0 };
 
// this structure defines all the variables and events of your control interface
struct {

    // input variables
  uint8_t button_1; // =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_BUTTON_1 9


void setup()
{
  RemoteXY_Init ();
 
  pinMode (PIN_BUTTON_1, OUTPUT);
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
  digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()


}

2

Re: Error ECONNREFUSED

https://i.ibb.co/px4m2wQ/Whats-App-Image-2022-10-27-at-4-38-50-PM.jpg

3

Re: Error ECONNREFUSED

Try connecting to the RemoteXY WiFi network manually using the Android settings.