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

cyborg5/IRLib gives an error when compiling #6

Closed
probonopd opened this issue Mar 29, 2015 · 7 comments
Closed

cyborg5/IRLib gives an error when compiling #6

probonopd opened this issue Mar 29, 2015 · 7 comments

Comments

@probonopd
Copy link
Contributor

probonopd commented Mar 29, 2015

I am trying to use https://github.com/cyborg5/IRLib/

IRLib/IRLib.h:74:7: error: '__FlashStringHelper' does not name a type
 const __FlashStringHelper *Pnames(IRTYPES Type); //Returns a character string that is name of protocol.

How would I have to change https://github.com/cyborg5/IRLib/blob/master/IRLib.h to make it work on the esp8266?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@igrr
Copy link
Member

igrr commented Mar 29, 2015

F() macro definition lost during merge, need to add it back again.

@igrr igrr added the type: bug label Mar 29, 2015
@igrr
Copy link
Member

igrr commented Mar 29, 2015

Looking at the code again, there's also some AVR specific stuff here that's needs a rewrite: https://github.com/cyborg5/IRLib/blob/master/IRLib.cpp#L926

@juanpintom
Copy link

There are news about this? I found some post on forum talking about, but not success for now :(

http://www.esp8266.com/viewtopic.php?f=11&t=3035&p=21524#p21524
http://www.esp8266.com/viewtopic.php?f=33&t=3357&p=19670

This one talks about one RTOS example, but I haven't knowledge to get it working on Arduino IDE ESP:
http://www.esp8266.com/viewtopic.php?f=32&t=2239&p=20127&hilit=IR#p20127

Regards

@probonopd
Copy link
Contributor Author

See https://github.com/markszabo/IRremoteESP8266/
Infrared remote library for ESP8266: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/

Unfortunately it only supports sending so far and not yet receiving but it is a start.
Still, I would prefer to see IRLib which has more functionality. Maybe someone who has the skills can port the changes that have been made to IRremote to run on the ESP8266 to the IRLib library, and implement receiving?

@ildr3him
Copy link

Any progress on this end? Is it impossible to receive IR signals on the ESP8266?

igrr pushed a commit that referenced this issue Oct 28, 2015
igrr pushed a commit that referenced this issue Oct 29, 2015
igrr pushed a commit that referenced this issue Oct 29, 2015
igrr added a commit that referenced this issue Feb 26, 2016
Changelog:
324c2fd Terminate connection if increase_bm_data_size fails
96fbb39 Update README.md
c18bb56 Add travis CI
9eaeca3 Postpone freeing of X509 context to the first data exchange after handshake
28869ea Use free followed by malloc instead of realloc when increasing raw buffer
43a90bc Merge pull request #8 from slaff/feature/lwipr-compat
66e1a5f Merge pull request #7 from slaff/feature/sni
1154d0a Changed the code to reserve bytes for hostname only if needed.
63da899 Added SNI ( https://en.wikipedia.org/wiki/Server_Name_Indication ) support.
7c38865 Restructured the lwip raw comat code. Added replacements for the time functions on ESP8266.
885ff3e Merge pull request #6 from slaff/feature/lwip-raw
d78e7a0 Initial version of axTLS integration with lwip raw tcp mode (http://lwip.wikia.com/wiki/Raw/TCP).
madpilot pushed a commit to madpilot/Arduino that referenced this issue Jul 15, 2017
Initial support for LWIP raw tcp mode.
@devyte
Copy link
Collaborator

devyte commented Oct 20, 2017

pgmspace.h has been reworked several times since this was opened.
Closing due to age and 3rd party lib.

@devyte devyte closed this as completed Oct 20, 2017
@C0rn3j
Copy link

C0rn3j commented Dec 25, 2017

Gonna dump some info about IR on ESP8266 to help people bumping into these issues -

I was wondering about the current status of IR on the ESP8266 - and it seems to work with the project linked before, including sending.

https://github.com/markszabo/IRremoteESP8266/

Here is also some very crude receiver that will just output to serial(since the examples I found out needed at least some modification to run on current library/arduino IDE versions):

int RECV_PIN = 4; // D2, IR OUT
unsigned int timeOfIncoming;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup() {
  Serial.begin(115200);
  Serial.println("Starting up");
  irrecv.enableIRIn(); // Start the receiver
}
void loop() {
   if (irrecv.decode(&results)) {
    Serial.println((long int)results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}

Also #3371 seems to be related(came up when googling the include error), so I'm linking it through for posterity.

ascillato pushed a commit to ascillato/Arduino that referenced this issue Nov 12, 2019
Jason2866 referenced this issue in Jason2866/Arduino Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants