Announcement

Collapse
No announcement yet.

4Duino ESP8266 library

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 4Duino ESP8266 library

    hello!

    I recently updated my 4Duino's ESP8266 firmware to nodemcu firmware, because i no longer want to use the AT command firmware...
    my question is, why i cant use Blynk, workshop said to me after i trying to compile:

    fatal error: ESP8266WiFi.h: No such file or directory
    #include "ESP8266WiFi.h"
    compilation terminated.
    (i have this library)

    Code:
    #include <ESP8266WiFi.h>
    #include <BlynkSimpleEsp8266.h>
    
    char auth[] = "dc757563b77349718e1678b3ce46230f";
    char ssid[] = "TPLINK_SRV";
    char pass[] = "medicor2017";
    
    void setup()
    {
      Blynk.begin(auth, ssid, pass);
    }
    
    void loop()
    {
      Blynk.run();
    }
    Thank you for your answer!
    Tomi from Hungary

  • #2
    the library isnt placed properly in your documents/arduino/libraries folder

    Comment


    • #3
      Originally posted by tonton81 View Post
      the library isnt placed properly in your documents/arduino/libraries folder
      hello tonton81,

      thank you for your answer, but the library is in the right place...
      something else suggestion?

      Comment


      • #4
        can you take a picture of the folder contents as well as the path? if you copied it there you need to restart the IDE for it to see it as well

        Comment


        • #5
          Originally posted by tonton81 View Post
          can you take a picture of the folder contents as well as the path? if you copied it there you need to restart the IDE for it to see it as well
          Click image for larger version

Name:	4jlfBIj.png
Views:	1
Size:	19.2 KB
ID:	60513

          yes, for sure!

          i attached 2 pictures, one is taken from "documents/arduino/libraries folder" the other one is "Program Files (x86)\Arduino\libraries"
          this 2 libraries are same

          when i try to compile that code under nodemcu board, its works perfectly.
          but under 4duino board gives me an error...

          I'm thinking about this esp8266 library is not working with 4duino...

          Comment


          • #6
            remove the "-master" from folder name and restart IDE

            Comment


            • #7
              i solved the probleme, but there is another one!
              This code is intended to run on the ESP8266 platform! Please check your Tools->Board setting.

              Comment


              • #8
                Hello,

                Yes the Blynk library is intended to run on the ESP8266 directly. I guess it would be possible to add code to the Blynk example to allow you to pass data to and from the ESP8266 to the 4Duino using the serial port of the ESP8266 that is internally connected to the 4Duino.

                I hope this helps

                Best regards

                Paul

                Comment


                • #9
                  if you want to get a little dirty, its possible to program the esp8266 directly using the 4d programming adaptor/cable on the esp header in the back. to get even dirtier, after you done that, you'd need to jump 2 pins on the arduino then you can run esp8266 as host and the display can run genie

                  the product isnt intended for this purpose, but its an alternative for the user

                  Comment

                  Working...
                  X