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

Problema IRsend does not name a type #4

Open
babiribeiro opened this issue Jan 20, 2019 · 1 comment
Open

Problema IRsend does not name a type #4

babiribeiro opened this issue Jan 20, 2019 · 1 comment

Comments

@babiribeiro
Copy link

babiribeiro commented Jan 20, 2019

Olá pessoal, este é meu primeiro post, então se faltar alguma informação me perdooem :)

Eu estou usando um ESP8266 para clonar o controle de um ar-condicionado e ajustar a temperatura do mesmo caso ele saia de uma temperatura pré-estabelecida.

Quando eu tento compilar o código ele aparece o seguinte erro:

Arduino: 1.8.8 (Windows 10), Placa:"Generic ESP8266 Module, 80 MHz, Flash, Enabled, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Opções de compilação alteradas, recompilando tudo
ESP8266_Gmail_Sender_quase_final:5:1: error: 'IRsend' does not name a type

IRsend irsend(14); //pino D5

^

C:\Users\Barbara\Documents\Arduino\libraries\ESP8266_Gmail_Sender_quase_final\ESP8266_Gmail_Sender_quase_final.ino: In function 'void setup()':

ESP8266_Gmail_Sender_quase_final:75:3: error: 'irsend' was not declared in this scope

irsend.begin(); //INICIALIZA A FUNÇÃO

^

C:\Users\Barbara\Documents\Arduino\libraries\ESP8266_Gmail_Sender_quase_final\ESP8266_Gmail_Sender_quase_final.ino: In function 'bool ligar()':

ESP8266_Gmail_Sender_quase_final:171:3: error: 'irsend' was not declared in this scope

irsend.sendRaw(ON, tamanho, frequencia);

^

C:\Users\Barbara\Documents\Arduino\libraries\ESP8266_Gmail_Sender_quase_final\ESP8266_Gmail_Sender_quase_final.ino: In function 'bool desligar()':

ESP8266_Gmail_Sender_quase_final:190:3: error: 'irsend' was not declared in this scope

irsend.sendRaw(OFF, tamanho, frequencia);

^

exit status 1
'IRsend' does not name a type

Já pesquisei sobre esse problema e dizem para apagar a biblioteca RobotIRremote, que ela dá conflito com as biblioteca do Infravermelho, mas eu nem estou com ela baixada.

Alguém consegue me ajudar?

Obrigada!

@ghost
Copy link

ghost commented Jan 30, 2019

The problem is not in "RobotIRremote" library - it's caused by incompatibility of newer versions of IRremoteESP8266 with older ones. There's two ways to fix it:

  1. Download latest 1.x version (1.2.0) of IRremoteESP8266 and use it instead of installed one
  2. Better - upgrade the code to 2.0 version by easy tutorial, what I've done in my fork. As my IR-LED died I can't say if this works or not, but at least it compiles. If it's okay I'll PR my changes.

tl;dr try my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant