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


                  • #10
                    Hello,
                    I have a question related to connecting a 43DCT-CLB display to an esp8266 or WiMos board. What I would like to do is to send the visi commands to a WiMos board that would in turn send a command to another WiMos board that would have a relay or a temp sensor attached that would send back the temp and would then be displayed, also I would like to be able to send the WiMos a command to turn on a relay. Do I have to have an arduino connected between the esp8266 and the display or can I use a WiMos as a host for the display to send and receive data to control other WiMos boards.Can I use the Arduino visi-genie library to do this? Would it be easier to use the MotG chip with the display and use it communicate with the other esp8266. Thanks for your help.

                    Comment


                    • #11
                      Hello Markl,

                      Here are my suggestions, though it will depend on how intensive the communication between the two Wifi boards is:
                      1. (Visi environment)You can try setting up the ESP8266 to accept AT commands from the display as the host and use serial AT command from the display through serial communication.
                      2. (Visi-genie environment)(Not yet tried) Using the Visi-genie library on the ESP8266 module and using Arduino IDE to turn it as a host

                      You can also check out this projects using the MOTG ESP Wifi modules:

                      http://www.4dmakers.net/projects/det...ation-via-wifi
                      http://www.4dmakers.net/projects/det...gspeak-channel


                      You can also check out this projects using the 4Duino:

                      http://www.4dmakers.net/projects/details/client-server

                      Best regards

                      Comment

                      Working...
                      X