Coder Social home page Coder Social logo

wifi-single-relay-board's Introduction

Wifi-Single-Relay-Board

wifi-single-relay-board's People

Contributors

armtronix avatar

Stargazers

Dr. Aung Win Htut avatar

Watchers

James Cloos avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.