diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..ae95ba7 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,24 @@ +{ + "configurations": [ + { + "name": "macos-gcc-x64", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "macFrameworkPath": [ + "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "macos-gcc-x64", + "compilerArgs": [ + "-Wall", + "-Wextra", + "-Wpedantic" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a5d0054 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "platformio.platformio-ide" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a10239b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": false, + "cwd": "/Users/ronnyrohlfs/Documents/GitHub/Arduino-HomeKit-ESP8266", + "environment": [], + "program": "/Users/ronnyrohlfs/Documents/GitHub/Arduino-HomeKit-ESP8266/build/Debug/outDebug", + "internalConsoleOptions": "openOnSessionStart", + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/lldb", + "externalConsole": false, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..378100c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,19 @@ +{ + "C_Cpp_Runner.cCompilerPath": "/usr/bin/clang", + "C_Cpp_Runner.cppCompilerPath": "/usr/bin/clang++", + "C_Cpp_Runner.debuggerPath": "/usr/bin/lldb", + "C_Cpp_Runner.makePath": "/usr/bin/make", + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic" + ], + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.excludeSearch": [], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false +} \ No newline at end of file diff --git a/examples/Example02_Switch/.vscode/c_cpp_properties.json b/examples/Example02_Switch/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..e7d274b --- /dev/null +++ b/examples/Example02_Switch/.vscode/c_cpp_properties.json @@ -0,0 +1,20 @@ +{ + "configurations": [ + { + "name": "macos-gcc-x64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "${default}", + "cppStandard": "gnu++17", + "intelliSenseMode": "gcc-arm64", + "compilerArgs": [ + "-Wall", + "-Wextra", + "-Wpedantic" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/examples/Example02_Switch/.vscode/launch.json b/examples/Example02_Switch/.vscode/launch.json new file mode 100644 index 0000000..e8022da --- /dev/null +++ b/examples/Example02_Switch/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": false, + "cwd": "/Users/ronnyrohlfs/Documents/GitHub/Arduino-HomeKit-ESP8266/examples/Example02_Switch", + "environment": [], + "program": "/Users/ronnyrohlfs/Documents/GitHub/Arduino-HomeKit-ESP8266/examples/Example02_Switch/build/Debug/outDebug", + "internalConsoleOptions": "openOnSessionStart", + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/lldb", + "externalConsole": false, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/examples/Example02_Switch/.vscode/settings.json b/examples/Example02_Switch/.vscode/settings.json new file mode 100644 index 0000000..819c94a --- /dev/null +++ b/examples/Example02_Switch/.vscode/settings.json @@ -0,0 +1,19 @@ +{ + "C_Cpp_Runner.cCompilerPath": "/usr/bin/clang", + "C_Cpp_Runner.cppCompilerPath": "/usr/bin/clang++", + "C_Cpp_Runner.debuggerPath": "/usr/bin/lldb", + "C_Cpp_Runner.makePath": "/usr/bin/make", + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic" + ], + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "gnu++17", + "C_Cpp_Runner.excludeSearch": [], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false +} \ No newline at end of file diff --git a/examples/Example02_Switch/my_accessory.c b/examples/Example02_Switch/my_accessory.c index a6083d5..e3171b6 100644 --- a/examples/Example02_Switch/my_accessory.c +++ b/examples/Example02_Switch/my_accessory.c @@ -46,7 +46,7 @@ homekit_accessory_t *accessories[] = { homekit_server_config_t config = { .accessories = accessories, - .password = "111-11-111" + .password = "400-17-644" }; diff --git a/examples/Example02_Switch/wifi_info.h b/examples/Example02_Switch/wifi_info.h index 39e2c53..624c3be 100644 --- a/examples/Example02_Switch/wifi_info.h +++ b/examples/Example02_Switch/wifi_info.h @@ -14,8 +14,8 @@ #include #endif -const char *ssid = "your-ssid"; -const char *password = "your-password"; +const char *ssid = "MeineBox"; +const char *password = "Ronny23826?"; void wifi_connect() { WiFi.persistent(false);