Skip to content

Commit 4ae2ca0

Browse files
committed
Add BSSID to WiFiProperties
1 parent fd0d1b8 commit 4ae2ca0

File tree

6 files changed

+30
-12
lines changed

6 files changed

+30
-12
lines changed
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1-
WiFi properties which may be displayed by the widget are:
1+
The widget configuration options include the:
2+
- <i>Color scheme</i>
3+
- <i>Background opacity</i>
4+
- <i>Connection properties to be displayed</i>
5+
- <i>Data refreshing parameters</i>
6+
7+
WiFi connection properties displayed by the widget:
28
- <i>SSID</i>
3-
- <i>IP Address</i>
9+
- <i>BSSID</i>
10+
- <i>IPv4</i>
11+
- <i>Netmask</i>
12+
- <i>Local IPv6</i>
13+
- <i>First Public IPv6</i>
14+
- <i>Second Public IPv6</i>
415
- <i>Frequency</i>
16+
- <i>Channel</i>
517
- <i>Link Speed</i>
618
- <i>Gateway</i>
719
- <i>DNS</i>
820
- <i>DHCP</i>
9-
- <i>Netmask</i>
10-
11-
You can configure which properties are to be displayed. Also, you can choose between a light/dark widget theme
12-
independent of the set device theme, as well as determine the widget background opacity.
13-
The app itself likewise supports both light and dark mode.
1421

1522
The source code is available under the GPL-3.0 license at https://github.com/w2sv/WiFi-Widget.
1623
Feel free to hit me up with enhancement propositions, bug reports or whatever.
1724

18-
Built by yours truly, Janek Zangenberg.
25+
Built by yours truly, Janek Zangenberg aka W2SV.
1926

2027
<b>Credits:</b>
2128
- Logo foreground by <a href="https://freeicons.io/profile/75801">Hilmy Abiyyu Asad</a> licensed under <a href="https://creativecommons.org/licenses/by/3.0/">Creative Commons(Attribution 3.0 unported)</a>.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
- Pimped UI in various regards
2-
- Enabled hiding of last widget data refresh date time
1+
- Added BSSID to WiFi properties

common/src/main/kotlin/com/w2sv/common/data/sources/WifiProperty.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ enum class WifiProperty(
3232
},
3333
false
3434
),
35+
BSSID(
36+
R.string.bssid,
37+
R.array.bssid,
38+
{ wifiManager, _ ->
39+
wifiManager.connectionInfo.bssid
40+
}
41+
),
3542
IP(
3643
R.string.ipv4,
3744
R.array.ipv4,

common/src/main/res/values/string_arrays.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<item>Service Set Identifier. Your network\'s name.</item>
44
<item>https://en.wikipedia.org/wiki/Service_set_(802.11_network)#SSID</item>
55
</string-array>
6+
<string-array name="bssid">
7+
<item>Basic Service Set Identifier. A 48-bit label abiding by MAC-48 conventions which identifies your devices basic service set.</item>
8+
<item>https://en.wikipedia.org/wiki/Service_set_(802.11_network)#BSSID</item>
9+
</string-array>
610
<string-array name="ipv4">
711
<item>Internet Protocol Address, serving the two main purposes of identifying the network interface of your device and providing it\'s location within the network, thereby making it addressable. The IPv4 representation corresponds to a 32-bit number. The displayed address is your internal one, meaning that it\'s only visible from within your network.</item>
812
<item>https://en.wikipedia.org/wiki/IP_address</item>

common/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@
2727
<string name="wifi_disabled">WiFi Disabled</string>
2828
<string name="widget_pinning_not_supported_by_your_device_launcher">Widget pinning not supported by your device launcher</string>
2929
<string name="show_date_time">Show date time</string>
30+
<string name="bssid">BSSID</string>
3031
</resources>

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ android.nonTransitiveRClass=true
88
android.defaults.buildfeatures.buildconfig=true
99
android.uniquePackageNames=true
1010
android.nonFinalResIds=false
11-
version=1.2.6
12-
versionCode=32
11+
version=1.2.61
12+
versionCode=33

0 commit comments

Comments
 (0)