Salve a tutti ! Il mio problema è di interfacciare SinRicpro con il wemos 2560 R3, ho provato ha settare il wemos solo come esp, ma non mi carica lo sketch, al momento è settato come lettura sia del esp sia del chip 2560, con cui tramitre wifi si collega al servizio Blynk. Se in questa configurazione cerco di caricare lo sketch di Sinrich mi da un errore.
digita o incolla il codice qui
/*
- If you encounter any issues:
-
- check the readme.md at esp8266-esp32-sdk/README.md at master · sinricpro/esp8266-esp32-sdk · GitHub
-
- ensure all dependent libraries are installed
-
- open serial monitor and check whats happening
-
- check full user documentation at https://sinricpro.github.io/esp8266-esp32-sdk
-
- visit Issues · sinricpro/esp8266-esp32-sdk · GitHub and check for existing issues or open a new one
*/
- visit Issues · sinricpro/esp8266-esp32-sdk · GitHub and check for existing issues or open a new one
// Uncomment the following line to enable serial debug output
//#define ENABLE_DEBUG
#ifdef ENABLE_DEBUG
#define DEBUG_ESP_PORT Serial
#define NODEBUG_WEBSOCKETS
#define NDEBUG
#endif
#include <Arduino.h>
#ifdef ESP8266
#include <ESP8266WiFi.h>
#endif
#ifdef ESP32
#include <WiFi.h>
#endif
#include "SinricPro.h"
#include "SinricProSwitch.h"
#define WIFI_SSID ""
#define WIFI_PASS ""
#define APP_KEY "" // Should look like ""
#define APP_SECRET ""
#define BAUD_RATE 9600 // Change baudrate to your need
#ifdef ESP8266
#define RELAY_PIN 3 // Pin where the relay is connected (D5 = GPIO 14 on ESP8266)
#endif
#ifdef ESP32
#define RELAY_PIN 64 // Pin where the relay is connected (GPIO 16 on ESP32)
#endif
bool onPowerState(const String &deviceId, bool &state) {
digitalWrite(RELAY_PIN, state); // set pin state
return true; // request handled properly
}
void setup() {
pinMode(RELAY_PIN, OUTPUT); // set relay-pin to output mode
WiFi.begin(WIFI_SSID, WIFI_PASS); // start wifi
SinricProSwitch& mySwitch = SinricPro[SWITCH_ID]; // create new switch device
mySwitch.onPowerState(onPowerState); // apply onPowerState callback
SinricPro.begin(APP_KEY, APP_SECRET); // start SinricPro
}
void loop() {
SinricPro.handle(); // handle SinricPro commands
}
Arduino\libraries\esp8266-esp32-sdk-master\src/SinricProQueue.h:10:10: fatal error: queue: No such file or directory
#include