Topic: Can't load GUI when connecting to NodeMCU as AP
Hello,
In my project i made a simple interface with a joystick, a slider and a selector to control a RC Car.
As i am new to this app i was going to test the components and wanted to sart by turning leds on and off through the selector.
The NodeMCU created the WiFi SSID, i successfully connected the the NodeMCU as AP with my Android Phone but when i connect within the RemoteXY App using Wi-Fi Point it gets stuck in the "Connecting" Screen with the circle and just wont load the interface.
Here's my test code.
/*
-- RC CAR --
This source code of graphical user interface
has been generated automatically by RemoteXY editor.
To compile this code using RemoteXY library 2.3.5 or later version
download by link http://remotexy.com/en/library/
To connect using RemoteXY mobile app by link http://remotexy.com/en/download/
- for ANDROID 4.3.1 or later version;
- for iOS 1.3.5 or later version;
This source code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
*/
//////////////////////////////////////////////
// RemoteXY include library //
//////////////////////////////////////////////
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT
#include <ESP8266WiFi.h>
#include <RemoteXY.h>
// RemoteXY connection settings
#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[] =
{ 255,4,0,0,0,63,0,8,13,0,
5,0,65,21,30,30,2,26,31,4,
0,8,2,15,59,2,26,3,2,43,
25,12,22,2,26,129,0,2,3,31,
6,50,86,101,108,111,99,105,100,97,
100,101,0,129,0,68,13,22,6,50,
68,105,114,101,195,167,195,163,111,0 };
// this structure defines all the variables of your control interface
struct {
// input variable
int8_t joystick_1_x; // =-100..100 x-coordinate joystick position
int8_t joystick_1_y; // =-100..100 y-coordinate joystick position
int8_t slider_1; // =0..100 slider position
uint8_t select_1; // =0 if select position A, =1 if position B, =2 if position C, ...
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
void setup()
{
RemoteXY_Init ();
pinMode(D2,OUTPUT);
pinMode(D3,OUTPUT);
}
void loop()
{
RemoteXY_Handler ();
if(RemoteXY.select_1==0){
digitalWrite(D2,HIGH);
digitalWrite(D3,LOW);
}
else{
digitalWrite(D2,LOW);
digitalWrite(D3,HIGH);
}
}