Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reference to 'File' is ambiguous #29

Closed
minhtinn70 opened this issue Aug 12, 2022 · 5 comments
Closed

reference to 'File' is ambiguous #29

minhtinn70 opened this issue Aug 12, 2022 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@minhtinn70
Copy link

Hello, Please help me solve this problem

" C:\Users\minht\OneDrive\Documents\Arduino\libraries\EMailSender\EMailSender.h:297:25: error: reference to 'File' is ambiguous"
The problem occurs in the file EMailSender.h

image
Line 297

@xreef
Copy link
Owner

xreef commented Aug 12, 2022

Hi,
please tell me your configuration and code.
Bye Renzo

@xreef xreef added the help wanted Extra attention is needed label Aug 13, 2022
@minhtinn70
Copy link
Author

minhtinn70 commented Aug 13, 2022

Hello, This is the code, the error pointed that " C:\Users\minht\OneDrive\Documents\Arduino\libraries\EMailSender\EMailSender.h:297:25: error: reference to 'File' is ambiguous" which is in file EMailSender.h

I use ESP8266 node MCU, I follow the tutorial of " https://github.com/Neutrino-1/Fitness_Watch ". If you require any further information, let me know. Thanks

This is the all libraries that I use in code

#include "C:\Users\minht\OneDrive\Documents\PlatformIO\Projects\Watch\src\include\main.h"  
void setup()
{
 // put your setup code here, to run once:
  pinMode(navButton, INPUT_PULLUP);
  pinMode(14, OUTPUT);
  attachInterrupt(digitalPinToInterrupt(0), ISR, FALLING);
  Serial.begin(115200);
  Serial.println("Starting...");
  startWiFiManager();
  initDispaly();
  delay(100);
  setupMPU();
  while (wifiConnected())
    ;
  startTime();
  initUI();
  idleTime = millis();
}

void loop()
{
  if (remainingTimeBudget() > 0)
  {
  }

  if (pressed)
  {
    changeFrame();
    pressed = false;
  }

  if (timeStatus() != timeNotSet)
  {
    if (now() != prevDisplay)
    { //update the display only if time has changed
      prevDisplay = now();
      setDisplayTime(digitalClockValue());
      //Serial.println(digitalClockValue());
      // WiFi.mode(WIFI_OFF);
    }
  }

  calculateGraphics();
  if (calculateMotion())
  {
    if (!displayOnStatus)
    {
      onDispaly();
      displayOnStatus = true;
    }
    idleTime = millis();
  }
  else if (!calculateMotion() && displayOnStatus && millis() - idleTime > 15000)
  {
    displayOnStatus = false;
    turnOffDisplay();
    idleTime = millis();
  }

  // put your main code here, to run repeatedly:
}

ICACHE_RAM_ATTR void ISR()
{
  if (!displayOnStatus)
  {
    onDispaly();
    displayOnStatus = false;
  }
  else
  {
    pressed = true;
  }
}

@minhtinn70
Copy link
Author

Hi, please tell me your configuration and code. Bye Renzo

Hello Renzo, pls reply me.

@xreef
Copy link
Owner

xreef commented Aug 14, 2022

Sorry I'm on holiday and I can't check it.
Bye Renzo

@xreef
Copy link
Owner

xreef commented Aug 16, 2022

Hi,
I think that I can't find the problem without building all the projects sorry.
The library EMailSender for esp8266 works correctly.

Try to ask the project creator if He uses some particular version or configuration.
Bye Renzo

@xreef xreef closed this as completed Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants