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(); }
-----