can anyone please help me with this
error code
wemos_relay.ino:5:20: fatal error: switch.h: no such file directory
#include "switch.h"
Try with "#include <switch.h>"
pert
April 7, 2018, 12:26am
3
You haven't provided enough information for us to help you. I presume you found this wemos_relay.ino somewhere on the Internet. Don't you think it might be helpful to post a link to it?
justinorourke:
wemos_relay.ino:5:20: fatal error: switch.h: no such file directory
#include "switch.h"
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char* ssid = "SIHIPO"; /* wifi ssid */
const char* password = "sistemhidroponik"; /* wifi psk */
const char* ap_ssid = "SIHIPO_AP"; /* AP ssid */
const char* ap_password = "sistemhidroponik"; /* AP psk */
const String device_id = "C01";
const String device_type = "SIHIPO_C";
ESP8266WebServer server(80);
boolean pin[8];
int pinMap[] = {D1, D2, D3, D4, D8, D7, D6, D5}; /* Physical PIN Mapping */
void handleRoot() {
String out = "{\"id\":\"" + device_id + "\",\"type\":\"" + device_type + "\",\"value\":[";
for (int c = 0; c < sizeof(pin); c++) {
This file has been truncated. show original
Looks like someone added to this sketch and you are missing the switch.h file that got added.