1 (edited by tomas7788 2017-03-22 20:55:49)

Topic: WeMos D1 problem

Hello,
I'm trying to use WeMos D1 ESP8266 desk as Wi-Fi Access Point and I want to control some servos by Android Phone with RemoteXY app.
I successfully created WiFi spot on the desk and I can connect to this WiFi network with my phone. But when I want to add new device in RemoteXY app I select WiFi point and then I select my ESP8266 WiFi network but then i get this error:
"remote XY socket creater error failed to connect to /192.168.4.1 (port 6377): connect failed: ECONNREFUSED (Connection refused)"
Does anyone know where is the problem?
Thanks for answers!

2

Re: WeMos D1 problem

please, give your sketch here

3 (edited by tomas7788 2017-03-22 20:54:37)

Re: WeMos D1 problem

/* Create a WiFi access point and provide a web server on it. */

#include <ESP8266WiFi.h>
#include <WiFiClient.h> 
#include <ESP8266WebServer.h>

/* Set these to your desired credentials. */
const char *ssid = "ESPap";
const char *password = "thereisnospoon";

ESP8266WebServer server(80);

/* Just a little test message.  Go to [url]http://192.168.4.1[/url] in a web browser
 * connected to this access point to see it.
 */
void handleRoot() {
    server.send(200, "text/html", "<h1>You are connected</h1>");
}

void setup() {
    delay(1000);
    Serial.begin(115200);
    Serial.println();
    Serial.print("Configuring access point...");
    /* You can remove the password parameter if you want the AP to be open. */
    WiFi.softAP(ssid, password);

    IPAddress myIP = WiFi.softAPIP();
    Serial.print("AP IP address: ");
    Serial.println(myIP);
    server.on("/", handleRoot);
    server.begin();
    Serial.println("HTTP server started");
}

void loop() {
    server.handleClient();
}

4

Re: WeMos D1 problem

I mean the sketch with remotexy

5

Re: WeMos D1 problem

I have just downloaded the app and I want to add new device with plus button in the menu.

6

Re: WeMos D1 problem

You have to download the sketch generated by editor to your WeMos D1. Use the button "Get source code".
The app does not include your interfase. Sketch include the interface.