1 (edited by faruk17 2020-07-05 19:16:25)

Topic: Writing to txt with esp8266-12e module

I am using the esp8266-12e module. I created a project. It consists of 4 pages. I want to write data to txt, but I can't see it on android. At first it appeared, then the edits and txt did not appear as they increased. Program is locking.

/ RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT

#include <RemoteXY.h>
#include <RealTimeClockDS1307.h>

// RemoteXY connection settings 
#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[] =
  { 255,176,0,77,0,21,2,10,13,4,
  67,6,36,12,11,5,0,2,26,11,
  129,0,19,12,15,6,0,17,83,97,
  97,116,58,0,67,6,51,12,11,5,
  0,2,26,11,67,5,66,12,11,5,
  0,2,26,11,129,0,48,12,2,6,
  0,17,58,0,129,0,63,12,2,6,
  0,17,58,0,7,36,23,45,20,5,
  1,2,26,2,11,129,0,23,37,13,
  6,1,17,65,121,97,114,0,7,36,
  48,45,20,5,1,2,26,2,11,7,
  36,73,45,20,5,1,2,26,2,11,
  7,36,23,53,20,5,1,2,26,2,
  11,129,0,4,53,18,5,1,17,90,
  97,109,97,110,58,0,67,4,67,53,
  20,5,1,2,26,11,129,0,48,53,
  15,6,1,17,83,195,188,114,101,58,
  0,131,0,3,2,20,7,1,204,31,
  77,111,116,111,114,49,0,131,1,1,
  24,17,8,2,2,31,80,97,103,101,
  0,131,0,50,2,22,7,3,204,31,
  77,111,116,111,114,51,0,131,0,75,
  2,22,7,4,204,31,77,111,116,111,
  114,52,0,131,0,26,2,21,7,5,
  204,31,77,111,116,111,114,50,0,7,
  36,23,45,20,5,5,2,26,2,11,
  129,0,23,37,13,6,5,17,65,121,
  97,114,0,7,36,48,45,20,5,5,
  2,26,2,11,7,36,73,45,20,5,
  5,2,26,2,11,7,36,23,53,20,
  5,5,2,26,2,11,129,0,4,53,
  18,5,5,17,90,97,109,97,110,58,
  0,67,4,67,53,20,5,5,2,26,
  11,129,0,48,53,15,6,5,17,83,
  195,188,114,101,58,0,7,36,23,45,
  20,5,3,2,26,2,11,129,0,23,
  37,13,6,3,17,65,121,97,114,0,
  7,36,48,45,20,5,3,2,26,2,
  11,7,36,73,45,20,5,3,2,26,
  2,11,7,36,23,53,20,5,3,2,
  26,2,11,129,0,4,53,18,5,3,
  17,90,97,109,97,110,58,0,67,4,
  67,53,20,5,3,2,26,11,129,0,
  48,53,15,6,3,17,83,195,188,114,
  101,58,0,7,36,23,45,20,5,4,
  2,26,2,11,129,0,23,37,13,6,
  4,17,65,121,97,114,0,7,36,48,
  45,20,5,4,2,26,2,11,7,36,
  73,45,20,5,4,2,26,2,11,7,
  36,23,53,20,5,4,2,26,2,11,
  129,0,4,53,18,5,4,17,90,97,
  109,97,110,58,0,67,4,67,53,20,
  5,4,2,26,11,129,0,48,53,15,
  6,4,17,83,195,188,114,101,58,0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t switch_1; // =1 if switch ON and =0 if OFF 
  uint8_t button_1; // =1 if button pressed, else =0 
  char edit_1[11];  // string UTF8 end zero  
  char edit_2[11];  // string UTF8 end zero  
  char edit_3[11];  // string UTF8 end zero  
  char edit_4[11];  // string UTF8 end zero  
  char edit_5[11];  // string UTF8 end zero  
  char edit_6[11];  // string UTF8 end zero  
  char edit_7[11];  // string UTF8 end zero  
  char edit_8[11];  // string UTF8 end zero  
  char edit_9[11];  // string UTF8 end zero  
  char edit_10[11];  // string UTF8 end zero  
  char edit_11[11];  // string UTF8 end zero  
  char edit_12[11];  // string UTF8 end zero  
  char edit_13[11];  // string UTF8 end zero  
  char edit_14[11];  // string UTF8 end zero  
  char edit_15[11];  // string UTF8 end zero  
  char edit_16[11];  // string UTF8 end zero  

    // output variables
  char text_1[11];  // string UTF8 end zero 
  char text_2[11];  // string UTF8 end zero 
  char text_3[11];  // string UTF8 end zero 
  char text_4[11];  // string UTF8 end zero 
  char text_5[11];  // string UTF8 end zero 
  char text_6[11];  // string UTF8 end zero 
  char text_7[11];  // string UTF8 end zer  

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

} RemoteXY;
#pragma pack(pop)

void setup() {
  // put your setup code here, to run once:
  RemoteXY_Init ();
}

void loop() {
  // put your main code here, to run repeatedly:
  RemoteXY_Handler ();
  itoa (15, RemoteXY.text_1, 10);
   itoa (16, RemoteXY.text_2, 10);
   itoa (17, RemoteXY.text_3, 10);
    strcpy  (RemoteXY.text_3, "My");

}