Error code ...does not name a Type

I First created something with RemoteXY, then FLProg to create the arduino file to upload it to my ESP8266 ESP01 device. But it keeps coming back with the error:

'FLProgOnBoardWifiInterface' does not name a type.

What does this mean and how do I solve this. I am not a programmer so every step i took was via internet and youtube movies.

I put the full code below this.

Arduino:1.8.19 (Windows 10), Board:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, no dtr (aka ck), 26 MHz, 40MHz, DOUT (compatible), 512KB (FS:none OTA:~246KB), 2, nonos-sdk 2.2.1 (legacy), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino:10: warning: "REMOTEXY_ACCESS_PASSWORD" redefined

10 | #define REMOTEXY_ACCESS_PASSWORD "Trigion@3125"

  | 

In file included from C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino:4:

c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\RemoteXY\src/RemoteXY.h:165: note: this is the location of the previous definition

165 | #define REMOTEXY_ACCESS_PASSWORD ""

  | 

In file included from c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\RemoteXY\src/RemoteXY.h:159,

             from C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino:4:

c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\RemoteXY\src/RemoteXYComm_WiFi.h: In member function 'virtual uint8_t CRemoteXYServer_WiFi::available(CRemoteXYClient*)':

c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\RemoteXY\src/RemoteXYComm_WiFi.h:94:40: warning: 'WiFiClient WiFiServer::available(uint8_t*)' is deprecated: Renamed to accept(). [-Wdeprecated-declarations]

94 | WiFiClient cl = server->available ();

  |                                        ^

In file included from C:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:40,

             from C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino:3:

C:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServer.h:85:14: note: declared here

85 | WiFiClient available(uint8_t* status = NULL) attribute((deprecated("Renamed to accept().")));

  |              ^~~~~~~~~

C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino: At global scope:

pr3:5:1: error: 'FLProgOnBoardWifiInterface' does not name a type

5 | FLProgOnBoardWifiInterface WifiInterface_132345825;

  | ^~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino: In function 'void setup()':

pr3:30:5: error: 'WifiInterface_132345825' was not declared in this scope

30 | WifiInterface_132345825.setSkippingEvents(0);

  |     ^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\mkok7\AppData\Local\Temp\flprog\pr3\pr3.ino: In function 'void loop()':

pr3:47:5: error: 'WifiInterface_132345825' was not declared in this scope

47 | WifiInterface_132345825.pool();

  |     ^~~~~~~~~~~~~~~~~~~~~~~

Meerdere bibliotheken gevonden voor "Wire.h"

Gebruikt: C:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\Wire

Niet gebruikt: c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\Wire

Meerdere bibliotheken gevonden voor "RemoteXY.h"

Gebruikt: c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\RemoteXY

Niet gebruikt: c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\RemoteXYV3

Niet gebruikt: c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\arduino_960425

Meerdere bibliotheken gevonden voor "SoftwareSerial.h"

Gebruikt: C:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\packages\esp8266\hardware\esp8266\3.1.2\libraries\SoftwareSerial

Niet gebruikt: c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\Esp32-SoftwareSerial

Niet gebruikt: c:\Users\mkok7\Downloads\FLProg_9-1-0_Win64\ideV8\portable\sketchbook\libraries\SoftwareSerial

exit status 1

'FLProgOnBoardWifiInterface' does not name a type

Welcome to the forum

I don't see it

It is in the text below my question. I copied it directly from the arduino software.

I don't see any code, only a lot of errors

In my experience the easiest way to tidy up the code and add code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

Hereby the code after Auto Format and copy for forum options. I hope it is readable now.

#define  REMOTEXY_MODE__ESP8266WIFI_LIB_POINT
#include "flprogUtilites.h"
#include <ESP8266WiFi.h>
#include <RemoteXY.h>
FLProgOnBoardWifiInterface WifiInterface_132345825;
#define FLPROG_WIFI_INTERFACE1 WifiInterface_132345825
#define REMOTEXY_WIFI_SSID ""
#define REMOTEXY_WIFI_PASSWORD ""
#define REMOTEXY_SERVER_PORT 6377
#define REMOTEXY_ACCESS_PASSWORD "Trigion@3125"
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {255, 3, 0, 0, 0, 133, 0, 17, 0, 0, 0, 31, 1, 106, 200, 1, 1, 7, 0, 129, 24, 3, 56, 12, 205, 87, 105, 102, 105, 32, 82, 101, 108, 97, 105, 115, 0, 2, 10, 39, 44, 22, 0, 135, 26, 31, 36, 79, 78, 0, 79, 70, 70, 0, 2, 10, 88, 44, 22, 0, 135, 26, 31, 36, 79, 78, 0, 79, 70, 70, 0, 129, 16, 27, 34, 7, 205, 86, 101, 114, 108, 105, 99, 104, 116, 105, 110, 103, 0, 129, 15, 76, 32, 7, 205, 83, 108, 97, 103, 98, 111, 111, 109, 0, 129, 12, 129, 44, 7, 205, 67, 97, 109, 101, 114, 97, 32, 97, 108, 97, 114, 109, 0, 2, 11, 143, 44, 22, 0, 135, 26, 31, 36, 79, 78, 0, 79, 70, 70, 0};
struct
{
  unsigned char Lichtschakelaar;
  unsigned char Slagboom;
  unsigned char Camera;
  unsigned char connect_flag;
}
RemoteXY;
#pragma pack(pop)
void setup()
{
  pinMode(0, OUTPUT);
  digitalWrite(0, 0);
  pinMode(1, OUTPUT);
  digitalWrite(1, 0);
  pinMode(3, OUTPUT);
  digitalWrite(3, 0);
  WifiInterface_132345825.setSkippingEvents(0);
  WifiInterface_132345825.apOn();
  WifiInterface_132345825.apMac(0x78,  0xAC,  0xC0,  0x7C,  0x9C,  0x49);
  WifiInterface_132345825.setApSsid("Trigion_Wifi_relais");
  WifiInterface_132345825.setApPassword("Trigion@3125");
  WifiInterface_132345825.apLocalIP(IPAddress(192, 168, 4, 1));
  WifiInterface_132345825.apSubnet(IPAddress(255, 255, 255, 0));
  WifiInterface_132345825.apGateway(IPAddress(192, 168, 4, 1));
  RemoteXY_Init ();
}
void loop()
{
  RemoteXY_Handler  ();
  //Board:1
  digitalWrite(3, (RemoteXY.Camera));
  digitalWrite(1, (RemoteXY.Slagboom));
  digitalWrite(0, (RemoteXY.Lichtschakelaar));
  WifiInterface_132345825.pool();
}

Thnx in advanced. Hereby the code after your suggestions.

#define  REMOTEXY_MODE__ESP8266WIFI_LIB_POINT
#include "flprogUtilites.h"
#include <ESP8266WiFi.h>
#include <RemoteXY.h>
FLProgOnBoardWifiInterface WifiInterface_132345825;
#define FLPROG_WIFI_INTERFACE1 WifiInterface_132345825
#define REMOTEXY_WIFI_SSID ""
#define REMOTEXY_WIFI_PASSWORD ""
#define REMOTEXY_SERVER_PORT 6377
#define REMOTEXY_ACCESS_PASSWORD "Trigion@3125"
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {255, 3, 0, 0, 0, 133, 0, 17, 0, 0, 0, 31, 1, 106, 200, 1, 1, 7, 0, 129, 24, 3, 56, 12, 205, 87, 105, 102, 105, 32, 82, 101, 108, 97, 105, 115, 0, 2, 10, 39, 44, 22, 0, 135, 26, 31, 36, 79, 78, 0, 79, 70, 70, 0, 2, 10, 88, 44, 22, 0, 135, 26, 31, 36, 79, 78, 0, 79, 70, 70, 0, 129, 16, 27, 34, 7, 205, 86, 101, 114, 108, 105, 99, 104, 116, 105, 110, 103, 0, 129, 15, 76, 32, 7, 205, 83, 108, 97, 103, 98, 111, 111, 109, 0, 129, 12, 129, 44, 7, 205, 67, 97, 109, 101, 114, 97, 32, 97, 108, 97, 114, 109, 0, 2, 11, 143, 44, 22, 0, 135, 26, 31, 36, 79, 78, 0, 79, 70, 70, 0};
struct
{
  unsigned char Lichtschakelaar;
  unsigned char Slagboom;
  unsigned char Camera;
  unsigned char connect_flag;
}
RemoteXY;
#pragma pack(pop)
void setup()
{
  pinMode(0, OUTPUT);
  digitalWrite(0, 0);
  pinMode(1, OUTPUT);
  digitalWrite(1, 0);
  pinMode(3, OUTPUT);
  digitalWrite(3, 0);
  WifiInterface_132345825.setSkippingEvents(0);
  WifiInterface_132345825.apOn();
  WifiInterface_132345825.apMac(0x78,  0xAC,  0xC0,  0x7C,  0x9C,  0x49);
  WifiInterface_132345825.setApSsid("Trigion_Wifi_relais");
  WifiInterface_132345825.setApPassword("Trigion@3125");
  WifiInterface_132345825.apLocalIP(IPAddress(192, 168, 4, 1));
  WifiInterface_132345825.apSubnet(IPAddress(255, 255, 255, 0));
  WifiInterface_132345825.apGateway(IPAddress(192, 168, 4, 1));
  RemoteXY_Init ();
}
void loop()
{
  RemoteXY_Handler  ();
  //Board:1
  digitalWrite(3, (RemoteXY.Camera));
  digitalWrite(1, (RemoteXY.Slagboom));
  digitalWrite(0, (RemoteXY.Lichtschakelaar));
  WifiInterface_132345825.pool();
}
#include "flprogUtilites.h"

Where did you get this library from and what does it do ?

Does it come with example sketches ?

I was told to create something with RemoteXY to use my phone for the sp8266 with ESP01 wifi relay.
WIth the source code of that creation I was told to use FLProg to create the code for Arduino.
This program compiles the code that appears in the arduino program and then I send it the ESP01 wifi module.

Here are some screen shots in parts of what I did and want to do. I am not alowed to do more than 3 attachments or upload a sketch at once because I am a new user.







Who told you to do this ?
Where did you download the library from ?

I looked it up on youtube how to program the sp8266 and esp01 relay. This showed me how to use these programs.
I never downloaded any library. I only downloaded the flprog program.
RemoteXY is an online program.
So I think the library comes from the flprog program

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.