1 (edited by ruddogster 2020-11-24 00:24:45)

Topic: ESP8266

Started researching RemoteXY and after reading some examples and having one failure while trying to test compile the code generated by RemoteXY. Now correct me if I am wrong but if you click the checkmark instead of the arrow pointing right in the Arduino IDE it should do a test compile and not attempt to upload the sketch.
Well, when I press the check icon it starts the test compile but fails due to a serial error. Now I have seen serial errors before but it is usually when the com port is not selected. But as I stated before if you are test compiling that should not matter, correct. Why then am I seeing this error?
C:\Users\me\Documents\Arduino\libraries\RemoteXY\src/modules/serial.h:42:12: error: 'serial' was not declared in this scope
     return serial->available ();
            ^
exit status 1
Error compiling for board WeMos D1 R1.



Here is the code generated by RemoteXY

/*
   -- New project --
   
   This source code of graphical user interface
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 2.4.3 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.5.1 or later version;
     - for iOS 1.4.1 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__SOFTSERIAL
#include <SoftwareSerial.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 115200


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,9,0,0,0,63,0,10,13,0,
  2,0,37,11,22,11,2,26,31,31,
  79,78,0,79,70,70,0,6,0,5,
  4,20,20,2,26,5,0,66,2,30,
  30,2,26,31,4,0,13,33,7,18,
  2,26,1,0,44,38,12,12,2,31,
  88,0,3,3,78,38,8,22,2,26 };
 
// 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 rgb_1_r; // =0..255 Red color value
  uint8_t rgb_1_g; // =0..255 Green color value
  uint8_t rgb_1_b; // =0..255 Blue color value
  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 button_1; // =1 if button pressed, else =0
  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 ();
 
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()


}

2

Re: ESP8266

Hello.
when i have to get the rssi the esp cant!
can you insert a feature to show the rssi the esp into app???