Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem with ESP8266(Strange kind of error and no compilation)
Problem with ESP8266 [message #1800093] Wed, 19 December 2018 19:58
Paolo Salvagnini is currently offline Paolo SalvagniniFriend
Messages: 12
Registered: April 2017
Junior Member
Eclipse IDE for C/C++ Developers
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
OS: Windows 7, v.6.1, x86_64 / win32
Java version: 1.8.0_191

As System is working with arduino boards I added ESP8266
This is an old sketch used as test ESP8266
This sketch is working with no propbem using arduino Ide. It is scaning the net and send the result on a LCD display



include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <ESP8266WiFi.h>

#define I2C_ADDR 0x27 // <<- Add your address here.
#define Rs_pin 0
#define Rw_pin 1
#define En_pin 2
#define BACKLIGHT_PIN 3
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7

LiquidCrystal_I2C lcd(I2C_ADDR, En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin,
D7_pin);

void setup() {
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);

lcd.begin(16, 4, LCD_5x10DOTS); // LCD 16x4

// LCD Backlight ON
lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE);
lcd.setBacklight(HIGH); // accende Bachkight
}

void loop() {
int n = WiFi.scanNetworks();

if (n == 0) {
lcd.setCursor(0, 0);
lcd.print("no networks found"); // Start Print text to Line 1
lcd.setCursor(0, 1);
lcd.print("--------"); // Start Print Test to Line 2
}

else {
lcd.setCursor(0, 0);
lcd.print(n);
lcd.setCursor(0, 1);
lcd.print(" networks found ");
delay(2000);
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
lcd.setCursor(0, 0);
lcd.print(" "); // clr line 1
lcd.setCursor(0, 0);
lcd.print(i + 1);
lcd.print(": ");
lcd.setCursor(0, 1);
lcd.print(" "); // clr line 2
lcd.setCursor(0, 1);
lcd.print(WiFi.SSID(i)); // HERE IS THE ERROR

delay(2000);
}
}


when i compile I have such an output:

Description Resource Path Location Type
Errors
Invalid arguments '
Candidates are:
String SSID()
' ESP8266 Wifi LCD I2c.cpp /ESP8266 Wifi LCD I2c line 71 Semantic Error
Invalid arguments '
Candidates are:
unsigned int print(const __FlashStringHelper *)
unsigned int print(const String &)
unsigned int print(const char *)
unsigned int print(char)
unsigned int print(unsigned char, int)
unsigned int print(int, int)
unsigned int print(unsigned int, int)
unsigned int print(long int, int)
unsigned int print(unsigned long int, int)
unsigned int print(double, int)
unsigned int print(const Printable &)
' ESP8266 Wifi LCD I2c.cpp /ESP8266 Wifi LCD I2c line 71 Semantic Error

Warning
ignoring old recipe for target 'LCD' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 106 C/C++ Problem
ignoring old recipe for target 'LCD' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 118 C/C++ Problem
ignoring old recipe for target 'project/ESP8266' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 118 C/C++ Problem
ignoring old recipe for target 'Wifi' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 106 C/C++ Problem
ignoring old recipe for target 'Wifi' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 118 C/C++ Problem
overriding recipe for target 'LCD' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 118 C/C++ Problem
overriding recipe for target 'LCD' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 121 C/C++ Problem
overriding recipe for target 'project/ESP8266' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 121 C/C++ Problem
overriding recipe for target 'Wifi' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 118 C/C++ Problem
overriding recipe for target 'Wifi' Makefile /ESP8266 Wifi LCD I2c/build/ESP8266 line 121 C/C++ Problem

CONSOLE
makefile:118: warning: overriding recipe for target 'Wifi'
makefile:106: warning: ignoring old recipe for target 'Wifi'
makefile:118: warning: overriding recipe for target 'LCD'
makefile:106: warning: ignoring old recipe for target 'LCD'
makefile:121: warning: overriding recipe for target 'project/ESP8266'
makefile:118: warning: ignoring old recipe for target 'project/ESP8266'
makefile:121: warning: overriding recipe for target 'Wifi'
makefile:118: warning: ignoring old recipe for target 'Wifi'
makefile:121: warning: overriding recipe for target 'LCD'
makefile:118: warning: ignoring old recipe for target 'LCD'
make: Nothing to be done for 'all'.
Program store usage: -1 of maximum 1044464 bytes
Initial RAM usage: -1 of maximum 81920 bytes

Some suggestions ?
Thank
Previous Topic:Problem with ESP8266
Next Topic:Tracking macro
Goto Forum:
  


Current Time: Fri Apr 19 21:58:52 GMT 2024

Powered by FUDForum. Page generated in 0.02904 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top