This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| We need some way to communicate. | |
| -> Files. Dont even need a mount, since WSL/Windows has access to all files by default. | |
| Windows filesystem notify events don't work in WSL filesystem mounted to windows. | |
| -> Need to handle all logic in WSL | |
| WSL can execute Windows .exe in Windows context. | |
| Solution: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const std = @import("std"); | |
| const net = std.net; | |
| const io = std.io; | |
| const Response = struct { | |
| status: []const u8, | |
| headers: []const u8, | |
| body: []const u8, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const std = @import("std"); | |
| const net = std.net; | |
| const io = std.io; | |
| const mem = std.mem; | |
| const heap = std.heap; | |
| const http = std.http; | |
| const Response = struct { | |
| status: []const u8, | |
| headers: []const u8, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <WiFi.h> | |
| #include <WebServer.h> | |
| #define LED_PIN 2 // Abhaenig vom Board | |
| WebServer server(80); | |
| const char* SSID = "WiFi Name"; | |
| const char* PASSWORD = "passwort123"; |
OlderNewer