wifi-single-relay-board's Introduction
wifi-single-relay-board's People
wifi-single-relay-board's Issues
.ino file does not compile
I was trying to compile WifiSingleRelayWifiSwitch.ino but am getting lots of errors
C:\Users\someone\Documents\Arduino\Wifi_Single_Relay_Virtual_Two_Way_Switch\Wifi_Single_Relay_Virtual_Two_Way_Switch.ino: In function 'void setup()':
Wifi_Single_Relay_Virtual_Two_Way_Switch:127: error: 'macToStr' was not declared in this scope
hostName += macToStr(mac);
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:131: error: 'loadConfig' was not declared in this scope
loadConfig();
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:137: error: 'initWiFi' was not declared in this scope
initWiFi();
^
C:\Users\someone\Documents\Arduino\Wifi_Single_Relay_Virtual_Two_Way_Switch\Wifi_Single_Relay_Virtual_Two_Way_Switch.ino: In function 'void btn_handle()':
Wifi_Single_Relay_Virtual_Two_Way_Switch:199: error: 'setOtaFlag' was not declared in this scope
setOtaFlag(!otaFlag);
^
C:\Users\someone\Documents\Arduino\Wifi_Single_Relay_Virtual_Two_Way_Switch\Wifi_Single_Relay_Virtual_Two_Way_Switch.ino: In function 'void loop()':
Wifi_Single_Relay_Virtual_Two_Way_Switch:262: error: 'clearConfig' was not declared in this scope
clearConfig() ? Serial.println("Config cleared!") : Serial.println("Config could not be cleared");
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:270: error: 'setOtaFlag' was not declared in this scope
setOtaFlag(0);
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:284: error: 'Scan_Wifi_Networks' was not declared in this scope
Scan_Wifi_Networks();
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:288: error: 'connectMQTT' was not declared in this scope
if (!connectMQTT()) {
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:293: error: 'mqtt_handler' was not declared in this scope
mqtt_handler();
^
Wifi_Single_Relay_Virtual_Two_Way_Switch:303: error: 'initWiFi' was not declared in this scope
initWiFi(); //Try to connect again
^
exit status 1
'macToStr' was not declared in this scope
I believe thats because this file is a mashup of the other files, than a working code. Is there any working file which shows switching on / off of a bulb based on a signal sent over a GPIO, alongwith the wiring?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.