diff --git a/cards/WifiSetCard.vue b/cards/WifiSetCard.vue
index 7c88e2b..ee6dcf6 100644
--- a/cards/WifiSetCard.vue
+++ b/cards/WifiSetCard.vue
@@ -9,8 +9,12 @@
-
-
+
+
+
@@ -45,7 +49,7 @@ defineOptions({
})
const init = {
- wifi_enab: true, wifi_mode: 1, wifi_power: 0, wifi_ap_ssid: "", wifi_ap_key: "",
+ wifi_enab: true, wifi_mode: 1, wifi_power: 0, wifi_disab_time: 0, wifi_ap_ssid: "", wifi_ap_key: "",
wifi_ap_ip: "", wifi_sta_ssid: "", wifi_sta_key: "", wifi_isdhcp: true, wifi_sta_ip: "",
wifi_sta_mask: "", wifi_sta_gw: "", wifi_dns1: "", wifi_dns2: "", wifi_dns3: "",
wifi_sta_mac: "", wifi_ap_mac: ""
@@ -55,6 +59,13 @@ const wifimodes = [
{ label: 'Access point (AP)', value: '2' },
{ label: 'Mixed mode (AP+STA)', value: '3' }];
+const apdshuttime = [
+ { label: '1 minute', value: '1' },
+ { label: '5 minutes', value: '5' },
+ { label: '10 minutes', value: '10' },
+ { label: '30 minutes', value: '30' },
+ { label: '60 minutes', value: '60' },
+ { label: 'Never', value: '0' }];
const data = reactive(init);
@@ -67,6 +78,11 @@ const wifipwr = computed({
set(val) { data.wifi_power = val * 4; }
})
+const apshutdown = computed({
+ get() { return (data.wifi_disab_time).toString() },
+ set(val) { data.wifi_disab_time = Number(val); }
+})
+
function OpenScanDialog() {
$q.dialog({
component: SelectWiFiDialog