waaraawa / homekit_aqi_desk Goto Github PK
View Code? Open in Web Editor NEWESP8266 Arduino source code for Apple Homekit Air Quality accessory on the desktop
Home Page: https://github.com/waaraawa/Homekit_AQI_Desk/projects/2
ESP8266 Arduino source code for Apple Homekit Air Quality accessory on the desktop
Home Page: https://github.com/waaraawa/Homekit_AQI_Desk/projects/2
When trying to compile this code I am getting four variables with "multiple definition of ". The problem (in Red) sections from the Arduino error messages are listed below. Both the main sketch and homekit_config.c include the homekit_config.h file. It should not get loaded by both but appears to be doing that. Could the "#ifndef HOMEKIT_CONFIG__H__99D20943_B47B_45CD_AF23_FF497B9150D8" line not be working?
I have tried the Wemos D1 mini and NodeMCU boards.
The Arduino IDE also required for the folder name to match the name of the .ino sketch name.
I have tried moving lines 44-47 in homekit_config.h into different files without success.
Any suggestions?
/var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:44: multiple definition of current_heating_cooling_state'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:44: first defined here /Users/george/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:45: multiple definition of
target_heating_cooling_state'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:45: first defined here
/Users/george/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:46: multiple definition of target_temperature'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:46: first defined here /Users/george/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:47: multiple definition of
temperature_display_unit'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:47: first defined here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.