feat: wi-fi - expand support and fix issues, add GUI components
This commit is contained in:
1 parent
bbe1df62fd
commit
9eb21eb3e3
67 files changed
+4573
-245
No files matched your search
@@ -23,11 +23,26 @@ namespace montauk::abi {
|
||||
return (int64_t)Drivers::Net::Wifi::GetInfo(buf);
|
||||
}
|
||||
|
||||
static int64_t Sys_WifiScanStart(uint32_t timeoutMs) {
|
||||
return (int64_t)Drivers::Net::Wifi::StartScan(timeoutMs);
|
||||
}
|
||||
|
||||
static int64_t Sys_WifiResults(WifiNetwork* buf, int maxCount) {
|
||||
if (!buf || maxCount <= 0) return -1;
|
||||
if (maxCount > 64) maxCount = 64;
|
||||
return (int64_t)Drivers::Net::Wifi::GetResults(buf, maxCount);
|
||||
}
|
||||
|
||||
static int64_t Sys_WifiConnect(const char* ssid, const char* password) {
|
||||
if (!ssid) return -1;
|
||||
return (int64_t)Drivers::Net::Wifi::Connect(ssid, password);
|
||||
}
|
||||
|
||||
static int64_t Sys_WifiConnectAsync(const char* ssid, const char* password) {
|
||||
if (!ssid) return -1;
|
||||
return (int64_t)Drivers::Net::Wifi::ConnectAsync(ssid, password);
|
||||
}
|
||||
|
||||
static int64_t Sys_WifiDisconnect() {
|
||||
return (int64_t)Drivers::Net::Wifi::Disconnect();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user