1

Topic: Pls help need a timer.

Hello all i was trying to make an app that simple send a signal to a relay and uses a timer. I am using an esp8266 the code wotks great but how can i edit the code and make it work with a countdown for example 60 seconds. Here is the code if someone can tell me what to edit would be great.
/*
   -- New project --
   
   This source code of graphical user interface
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 3.1.10 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.13.11 or later version;
     - for iOS 1.10.3 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          //
//////////////////////////////////////////////

// you can enable debug logging to Serial at 115200
//#define REMOTEXY__DEBUGLOG   

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_POINT

#include <ESP8266WiFi.h>

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID "RemoteXY"
#define REMOTEXY_WIFI_PASSWORD "12345678"
#define REMOTEXY_SERVER_PORT 6377


#include <RemoteXY.h>

// RemoteXY GUI configuration 
#pragma pack(push, 1) 
uint8_t RemoteXY_CONF[] =   // 72 bytes
  { 255,4,0,0,0,65,0,17,0,0,0,24,1,106,200,2,1,0,3,0,
  4,38,114,14,36,16,2,26,3,16,8,24,44,2,2,26,10,71,29,24,
  24,52,4,26,31,79,78,0,31,79,70,70,0,1,0,10,42,75,24,24,
  48,4,26,31,79,78,0,31,79,70,70,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 select_01; // =0 if select position A, =1 if position B ...
  uint8_t pushSwitch_01; // =1 if state is ON, else =0
  uint8_t pushSwitch_02; // =1 if state is ON, 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 D2


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()


}

2

Re: Pls help need a timer.

Problem solved.
There is no community here the topic was there for how long and nobody was even bother to point to a direction this site shouldn't exist.