From fbae363d050d720cda3d05f7ad1f3a6ec962dac0 Mon Sep 17 00:00:00 2001 From: Ronny23826 <54706797+Ronny23826@users.noreply.github.com> Date: Wed, 15 Sep 2021 03:46:35 +0200 Subject: [PATCH 1/2] Ronn --- .vscode/c_cpp_properties.json | 24 +++++++++++++++++ .vscode/extensions.json | 5 ++++ .vscode/launch.json | 26 +++++++++++++++++++ .vscode/settings.json | 19 ++++++++++++++ .../.vscode/c_cpp_properties.json | 20 ++++++++++++++ examples/Example02_Switch/.vscode/launch.json | 26 +++++++++++++++++++ .../Example02_Switch/.vscode/settings.json | 19 ++++++++++++++ examples/Example02_Switch/my_accessory.c | 2 +- examples/Example02_Switch/wifi_info.h | 4 +-- 9 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 examples/Example02_Switch/.vscode/c_cpp_properties.json create mode 100644 examples/Example02_Switch/.vscode/launch.json create mode 100644 examples/Example02_Switch/.vscode/settings.json 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); From 7ca998aca4ee428b39e22d3c92ba58450b946061 Mon Sep 17 00:00:00 2001 From: Ronny23826 <54706797+Ronny23826@users.noreply.github.com> Date: Wed, 15 Sep 2021 03:52:40 +0200 Subject: [PATCH 2/2] 1