[Programmation] arduino+ESP8266
Répondre à la discussion
Affichage des résultats 1 à 2 sur 2

arduino+ESP8266



  1. #1
    emnakh

    arduino+ESP8266


    ------

    Bonsoir ,
    je dois contrôler mon compteur intelligent en utilisant le module wifi ESP8266 et l'application blynk sur mon téléphone pour afficher la consommation d'énergie . mais , j'ai un problème au niveau de la bibliothèque BlynkESP8266-master/ESP8266_Lib.h:620:10: error: 'bool ESP8266::eAT()' is private .
    je pense que le problème au niveau de la bibliothèque !!
    voici mon code :
    Code:
    /**************************************************************
     * Blynk is a platform with iOS and Android apps to control
     * Arduino, Raspberry Pi and the likes over the Internet.
     * You can easily build graphic interfaces for all your
     * projects by simply dragging and dropping widgets.
     *
     *   Downloads, docs, tutorials: http://www.blynk.cc
     *   Sketch generator:           http://examples.blynk.cc
     *   Blynk community:            http://community.blynk.cc
     *   Social networks:            http://www.fb.com/blynkapp
     *                               http://twitter.com/blynk_app
     *
     * Blynk library is licensed under MIT license
     * This example code is in public domain.
     *
     **************************************************************
     *
     * This example shows how to use ESP8266 Shield (with AT commands)
     * to connect your project to Blynk.
     *
     *
     * WARNING!
     *   It's rather tricky to get it working, please read this article:
     *   https://github.com/blynkkk/blynk-library/wiki/ESP8266-with-AT-firmware
     *
     * Change WiFi ssid, pass, and Blynk auth token to run :)
     * Feel free to apply it to any other example. It's simple!
     *
     **************************************************************/
    //#define BLYNK_PRINT Serial1    // Comment this out to disable prints and save space using UART2 of STM32F4DiscoveryShield
    #include <ESP8266_Lib.h>
    #include <BlynkSimpleShieldEsp8266.h>
    
    
    // You should get Auth Token in the Blynk App.
    // Go to the Project Settings (nut icon).
    char auth[] = "4a36aa9666b949d69277db72a0a502a0";//
    
    
    // Your WiFi credentials.
    // Set password to "" for open networks.
    char ssid[] = "Xperia_E3_485c";//POLYTECH_1
    char pass[] = "0774037bfdfb";//AM3GHJK891
    
    
    // Hardware Serial on Mega, Leonardo, Micro...
    #define EspSerial Serial2 // using the slot 1 of STM32F4DiscoveryShield : UART3
    
    
    // or Software Serial on Uno, Nano...
    #include <SoftwareSerial.h>
    SoftwareSerial EspSerial(4,6); // RX, TX
    
    
    // Your ESP8266 baud rate:
    #define ESP8266_BAUD 9600
    
    
    ESP8266 wifi(&EspSerial);
    
    
    void setup()
    {
      // Set console baud rate
      Serial.begin(9600);
      // Configure PWD ESP8266/ AN slot 1 STM32F4DiscoveryShield
      pinMode(PC1, OUTPUT);
      
      delay(200);
      digitalWrite(PC1, HIGH);   // turn on The ESP8266 WifiShield
      delay(500);
    
    
      // Set ESP8266 baud rate
      EspSerial.begin(ESP8266_BAUD);
      
      Blynk.begin(auth, wifi, ssid, pass);
    }
    
    
    void loop()
    {
      Blynk.run();
    }

    -----
    Fichiers attachés Fichiers attachés
    Dernière modification par Jack ; 24/05/2017 à 23h02. Motif: Ajout code

  2. #2
    Jack
    Modérateur

    Re : arduino+ESP8266

    ​J'ai ajouté le code car c'est tout de même plus simple à consulter qu'une pièce jointe.

Discussions similaires

  1. [Programmation] Page Web générée via ESP8266 et Arduino : problème !
    Par kilouxa dans le forum Électronique
    Réponses: 2
    Dernier message: 01/05/2016, 20h41
  2. [Programmation] Caractère étrange ESP8266 et Arduino Uno
    Par kilouxa dans le forum Électronique
    Réponses: 5
    Dernier message: 28/04/2016, 22h30
  3. [Programmation] Probème de communication ESP8266
    Par TheWill dans le forum Électronique
    Réponses: 8
    Dernier message: 07/02/2016, 14h12
  4. [RF/Radioelec] Quelqu'un connaît-il le module wifi ESP8266 ?
    Par lpt1com2 dans le forum Électronique
    Réponses: 3
    Dernier message: 31/01/2016, 20h47
  5. Module wifi ESP8266 ne démarre plus
    Par boy30 dans le forum Électronique
    Réponses: 9
    Dernier message: 27/07/2015, 19h00
Découvrez nos comparatifs produits sur l'informatique et les technologies.