washcroft / HttpGarageDoorController

A project for an Arduino based WiFi-enabled controller, IoT/M2M enabling an ordinary garage door operator.
MIT License
11 stars 4 forks source link

don't know how to start the project #6

Closed FilD01 closed 6 years ago

FilD01 commented 6 years ago

hi, I don't understand what I specifically need to do to make this work, can you explain which code needs to go where?

washcroft commented 6 years ago

This is a standard Arduino project, download the whole project, open HttpGarageDoorController.ino in the IDE, configure as per documentation and then upload to your chosen hardware.

OhHeyAlan commented 6 years ago

@washcroft There is really a lack of said documentation...

washcroft commented 6 years ago

@sparklingsparklers There is ample documentation in README.md, this is project specific documentation, not an introduction to micro controller programming and development.

OhHeyAlan commented 6 years ago

@washcroft

After downloading the project, creating the secret.h file, and downloading the dependencies, this is the error im getting.

Arduino: 1.8.5 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"

Build options changed, rebuilding all Archiving built core (caching) in: /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_cache_337983/core/core_esp8266_esp8266_nodemcuv2_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None__,UploadSpeed_115200_c3854604d461a8e339a634f719585bd3.a sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z41__static_initialization_and_destruction_0ii$part$0+0x18): undefined reference to `HttpWebServer::~HttpWebServer()' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z41static_initialization_and_destruction_0ii$part$0+0x1c): undefined reference to WiFiHelper::~WiFiHelper()' sketch/HttpGarageDoorController.ino.cpp.o: In functionstatic_initialization_and_destruction_0': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:61: undefined reference to HttpWebServer::~HttpWebServer()' sketch/HttpGarageDoorController.ino.cpp.o: In function~WiFiServer': /Users/alan/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/ESP8266WiFi/src/WiFiServer.h:50: undefined reference to WiFiHelper::~WiFiHelper()' sketch/HttpGarageDoorController.ino.cpp.o:(.text.setup+0x10): undefined reference toWiFiHelper::enable_led(unsigned char, unsigned char, unsigned char, bool)' sketch/HttpGarageDoorController.ino.cpp.o:(.text.setup+0x14): undefined reference to HttpWebServer::enable_apikey_header_auth(char const*)' sketch/HttpGarageDoorController.ino.cpp.o:(.text.setup+0x18): undefined reference toHttpWebServer::enable_oauth_auth(UDP&, char const, char const, unsigned short, unsigned short, unsigned short)' sketch/HttpGarageDoorController.ino.cpp.o: In function setup': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:76: undefined reference toWiFiHelper::enable_led(unsigned char, unsigned char, unsigned char, bool)' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:66: undefined reference to HttpWebServer::enable_apikey_header_auth(char const*)' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:83: undefined reference toHttpWebServer::enable_oauth_auth(UDP&, char const, char const, unsigned short, unsigned short, unsigned short)' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:88: undefined reference to WiFiHelper::is_connected()' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:88: undefined reference toWiFiHelper::connect()' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z11connectWiFiv+0x14): undefined reference to HttpWebServer::begin()' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z11connectWiFiv+0x18): undefined reference toClock::update(bool)' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z11connectWiFiv+0x1c): undefined reference to Clock::now_utc()' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z11connectWiFiv+0x20): undefined reference toClock::get_formatted_time(long, char, unsigned int)' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z11connectWiFiv+0x30): undefined reference to WiFiHelper::is_connected()' sketch/HttpGarageDoorController.ino.cpp.o: In functionconnectWiFi()': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:96: undefined reference to WiFiHelper::connect()' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:108: undefined reference toHttpWebServer::begin()' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:109: undefined reference to Clock::update(bool)' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:110: undefined reference toClock::now_utc()' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:123: undefined reference to `Clock::get_formatted_time(long, char, unsigned int)' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z17getJsonDeviceInfoPcj+0x30): undefined reference to WiFiHelper::get_mac(char*, unsigned int)' sketch/HttpGarageDoorController.ino.cpp.o:(.text._Z17getJsonDeviceInfoPcj+0x34): undefined reference toWiFiHelper::get_client_ip(char, unsigned int)' sketch/HttpGarageDoorController.ino.cpp.o: In function List': /Users/alan/Documents/Arduino/libraries/ArduinoJson-master/src/ArduinoJson/Data/List.hpp:30: undefined reference toWiFiHelper::get_mac(char, unsigned int)' /Users/alan/Documents/Arduino/libraries/ArduinoJson-master/src/ArduinoJson/Data/List.hpp:30: undefined reference to WiFiHelper::get_client_ip(char*, unsigned int)' sketch/HttpGarageDoorController.ino.cpp.o: In functionStaticStringBuilder': /Users/alan/Documents/Arduino/libraries/ArduinoJson-master/src/ArduinoJson/Deserialization/../Serialization/StaticStringBuilder.hpp:14: undefined reference to HttpWebServer::send_response(Client&, unsigned short, unsigned char const*, unsigned int)' sketch/HttpGarageDoorController.ino.cpp.o: In functionrequestHandler(Client&, char const, char const, HashMap<char, char, 24u>&)': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:174: undefined reference to HttpWebServer::send_response(Client&, unsigned short, unsigned char const*, unsigned int)' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:170: undefined reference toWiFiHelper::WiFiHelper(char const, char const, char const*, unsigned short)' /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:175: undefined reference to `HttpWebServer::HttpWebServer(Server&, unsigned short, unsigned short, unsigned short)' sketch/HttpGarageDoorController.ino.cpp.o:(.text.startup._GLOBALsub_I_gController+0x37): undefined reference to WiFiHelper::WiFiHelper(char const*, char const*, char const*, unsigned short)' sketch/HttpGarageDoorController.ino.cpp.o: In function__static_initialization_and_destruction_0': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:59: undefined reference to HttpWebServer::HttpWebServer(Server&, unsigned short, unsigned short, unsigned short)' sketch/HttpGarageDoorController.ino.cpp.o: In function_GLOBAL__sub_D_gController': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:61: undefined reference to HttpWebServer::poll(Client&, unsigned short (*)(Client&, char const*, char const*, HashMap<char*, char*, 24u>&))' sketch/HttpGarageDoorController.ino.cpp.o: In functionloop': /var/folders/9q/7t76cjg50vj1hzjh_ygqd6l00000gn/T/arduino_modified_sketch_877919/HttpGarageDoorController.ino:184: undefined reference to HttpWebServer::poll(Client&, unsigned short (*)(Client&, char const*, char const*, HashMap<char*, char*, 24u>&))' libraries/HttpGarageDoorController-master/GarageDoorController.cpp.o: In functionStaticStringBuilder': /Users/alan/Documents/Arduino/libraries/ArduinoJson-master/src/ArduinoJson/Deserialization/../Serialization/StaticStringBuilder.hpp:13: undefined reference to striendswith(char const*, char const*)' libraries/HttpGarageDoorController-master/GarageDoorController.cpp.o: In functionGarageDoorController::requestHandler(Client&, char const, char const, HashMap<char, char, 24u>&)': /Users/alan/Documents/Arduino/libraries/HttpGarageDoorController-master/GarageDoorController.cpp:165: undefined reference to HttpWebServer::send_response(Client&, unsigned short, unsigned char const*, unsigned int)' /Users/alan/Documents/Arduino/libraries/HttpGarageDoorController-master/GarageDoorController.cpp:172: undefined reference tostriendswith(char const, char const)' /Users/alan/Documents/Arduino/libraries/HttpGarageDoorController-master/GarageDoorController.cpp:179: undefined reference to striendswith(char const*, char const*)' /Users/alan/Documents/Arduino/libraries/HttpGarageDoorController-master/GarageDoorController.cpp:182: undefined reference tostriendswith(char const, char const)' /Users/alan/Documents/Arduino/libraries/HttpGarageDoorController-master/GarageDoorController.cpp:187: undefined reference to `striendswith(char const, char const)' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.