IRremoteESP8266 | Infrared remote library for ESP8266/ESP32 : send

 by   crankyoldgit C++ Version: v2.8.5 License: LGPL-2.1

kandi X-RAY | IRremoteESP8266 Summary

kandi X-RAY | IRremoteESP8266 Summary

IRremoteESP8266 is a C++ library typically used in Internet of Things (IoT), Arduino applications. IRremoteESP8266 has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has medium support. You can download it from GitHub.

This library enables you to send and receive infra-red signals on an ESP8266 or an ESP32 using the Arduino framework using common 940nm IR LEDs and common IR receiver modules. e.g. TSOP{17,22,24,36,38,44,48}* demodulators etc.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              IRremoteESP8266 has a medium active ecosystem.
              It has 2439 star(s) with 750 fork(s). There are 89 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 25 open issues and 795 have been closed. On average issues are closed in 22 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of IRremoteESP8266 is v2.8.5

            kandi-Quality Quality

              IRremoteESP8266 has no bugs reported.

            kandi-Security Security

              IRremoteESP8266 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              IRremoteESP8266 is licensed under the LGPL-2.1 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              IRremoteESP8266 releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of IRremoteESP8266
            Get all kandi verified functions for this library.

            IRremoteESP8266 Key Features

            No Key Features are available at this moment for IRremoteESP8266.

            IRremoteESP8266 Examples and Code Snippets

            No Code Snippets are available at this moment for IRremoteESP8266.

            Community Discussions

            Trending Discussions on IRremoteESP8266

            QUESTION

            Unknown type name 'IRsend'
            Asked 2017-Aug-15 at 09:34

            In the C file in simplesample_mqtt.c, which connects Arduino to the Azure IoT hub, I need to use the IRsend and IrRemoteESP8266 libraries to send an infrared signal with Azure IoT hub.

            1. #include
            2. #include
            3. IRsend irsend(10); // An IR LED is controlled by GPIO pin 4 (D2)

            I don't have any problem when I use this code in my main Ardunio file. But when I use these includes in a C file (implesample_mqtt.c), I get this error from line 3: "unknown type name 'IRsend'".

            error full info : Arduino: 1.8.2 (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200, 4M (3M SPIFFS)"

            In file included from sketch\simplesample_mqtt.c:29:0:

            C:\Program Files (x86)\Arduino\libraries\IRremoteESP8266\src/IRsend.h:29:1: error: unknown type name 'class'

            class IRsend {

            C:\Program Files (x86)\Arduino\libraries\IRremoteESP8266\src/IRsend.h:29:14: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token

            class IRsend {

            simplesample_mqtt.c:31: error: unknown type name 'IRsend'

            IRsend irsend(10); // An IR LED is controlled by GPIO pin 4 (D2)

            simplesample_mqtt.c:31: error: expected declaration specifiers or '...' before numeric constant

            IRsend irsend(10); // An IR LED is controlled by GPIO pin 4 (D2)

            exit status 1 unknown type name 'IRsend'

            This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

            ...

            ANSWER

            Answered 2017-Aug-15 at 09:34

            I solved this problem. The reason for this is because main ardunio is c++ and simplesample_mqtt.c is c code and we have to use c++ code in c code :

            i main ardunio file you have to declare function like this :

            Source https://stackoverflow.com/questions/45664119

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install IRremoteESP8266

            Click the "Sketch" -> "Include Library" -> "Manage Libraries..." Menu items.
            Enter IRremoteESP8266 into the "Filter your search..." top right search box.
            Click on the IRremoteESP8266 result of the search.
            Select the version you wish to install and click "Install".
            Click on "Clone or Download" button, then "Download ZIP" on the page.
            Extract the contents of the downloaded zip file.
            Rename the extracted folder to "IRremoteESP8266".
            Move this folder to your libraries directory. (under windows: C:\Users\YOURNAME\Documents\Arduino\libraries\)
            Restart your Arduino IDE.
            Check out the examples.

            Support

            You can find the details of which protocols & devices are supported here.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link