Topic: app not connecting to esp8266

hello, i have an esp8266 board which i connected to a arduino uno based board, and i have a basic arduino sketch which should turn on and off with a switch on the app on my phone. i was able to make a wifi network through the esp8266 and connect to it through my phone, but when i went to the remoteXY app to try and connect to my board, but i was stuck on a connecting screen. the wifi network i made would come up, but i couldnt connect to it. does anyone have any idea how i could get this working?

2 (edited by albatros 2019-07-09 21:59:09)

Re: app not connecting to esp8266

Almost same problem with me, but can you showing the code?
- Make sure ur wifi module already get ESP8266 Firmware AT_v0.40 or up (AT+GMR)
- Try Reset ur wifi (AT+RST)
- Try to using 115200 baud speed

My problem is, when I upload my code, I got error message "Device not reply. Receive time out error"
and this is my code :

   -- Test Wifi Switch and Timer -- 
   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. 

   Menggunakan 2 baud :
   - 115200 untuk melihat koneksi Wifi
   - 9600 untuk melihat timer

//        RemoteXY include library          //  

// RemoteXY select connection mode and include library  

#include <RemoteXY.h> //Library RemoteXY
#include <DS3231.h> //Library Time yg simple

// RemoteXY connection settings  
#define REMOTEXY_SERIAL Serial 
#define REMOTEXY_WIFI_SSID "Rumah_Patoman1" 

// RemoteXY configurate   
#pragma pack(push, 1) 
uint8_t RemoteXY_CONF[] = 
  { 255,2,0,0,0,84,0,8,13,2,
  0 }; 
// this structure defines all the variables of your control interface  
struct { 

    // input variable
  uint8_t switch_1; // =1 if switch OFF and =0 if ON (ini diganti supaya sesuai dengan warna led yg menyala di Relay)
  uint8_t switch_2; // =1 if switch OFF and =0 if ON 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY; 
#pragma pack(pop) 

//           END RemoteXY include          // 

#define PIN_SWITCH_1 2
#define PIN_SWITCH_2 8
#define Relay2 2
#define Relay8 8 // Penamaan untuk Timer harapannya ga binggung mana timer mana tombol wifi

//Coding untuk RTCnya
DS3231  rtc(SDA, SCL);
Time t;

 Perintah untuk On-Off berdasarkan Jam dan Menit dgn format waktu 24
 Banyakan Perintah On-Off bisa di tambah selama memorynya cukup
const int OnHour = 19;
const int OnMin = 23;
const int OffHour = 7;
const int OffMin = 59;

const int OnHour2 = 8;
const int OnMin2 = 00;
const int OffHour2 = 8;
const int OffMin2 = 01;

//Tambah Perintahnya jika masih kurang

void setup()  
//Perintah void Setup RemoteXY
  RemoteXY_Init ();  
  pinMode (PIN_SWITCH_1, OUTPUT);
  pinMode (PIN_SWITCH_2, OUTPUT);
// Perintah void Setup RTC Simple
  pinMode(Relay2, OUTPUT);
  pinMode(Relay8, OUTPUT); // Tambahkan Namanya jika dibutuhkan

void loop()  
  RemoteXY_Handler (); 
  digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH); //"==0" artinya hidup (Lampu Merah&Hijau Menyala) | "==1" artinya mati (Hanya Lampu Merah yg menyala)
  digitalWrite(PIN_SWITCH_2, (RemoteXY.switch_2==0)?LOW:HIGH); 
//kode void loop RTC Simple
  t = rtc.getTime();
  Serial.print(" hour(s), ");
  Serial.print(" minute(s)");
  Serial.println(" ");
  delay (1000);

//Kode Perintah On-Off Timer
  if(t.hour == OnHour && t.min == OnMin){
    digitalWrite(Relay2,LOW); //Tentukan Pin mana yg mau di kontrol
    Serial.println("LIGHT ON");
    else if(t.hour == OffHour && t.min == OffMin){
      Serial.println("LIGHT OFF");

    if(t.hour == OnHour2 && t.min == OnMin2){
    Serial.println("LIGHT ON");
    else if(t.hour == OffHour2 && t.min == OffMin2){
      Serial.println("LIGHT OFF");

Newbie Arduino from Bali - Indonesia
bit.ly/chat_sandy for my WA Chat Link


Re: app not connecting to esp8266

Remove delay


Re: app not connecting to esp8266

and remove Serial.print if RemoteXY is working via Serial