Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/play175/wifinotifier
A golang library for detect when wifi changed(connected or disconnected or ssid changed)
https://github.com/play175/wifinotifier
Last synced: 23 days ago
JSON representation
A golang library for detect when wifi changed(connected or disconnected or ssid changed)
- Host: GitHub
- URL: https://github.com/play175/wifinotifier
- Owner: play175
- License: mit
- Created: 2019-05-07T08:27:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T15:00:17.000Z (over 4 years ago)
- Last Synced: 2024-06-19T01:45:51.819Z (7 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 22
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wifiNotifier
===Detect when wifi changed(connected or disconnected or ssid changed),current only support Windows & Mac OS
wifiNotifier 是一个可以监听 Wi-Fi 连接变化的库,当 wifi 连接或者断开连接或者 ssid 发生变化时都可以给出通知,当前支持 Windows 系统 和 Mac OS 系统
examples
```
package mainimport (
"log""github.com/play175/wifiNotifier"
)func main() {
wifiNotifier.SetWifiNotifier(func(ssid string) {
log.Println("onWifiChanged,current ssid:" + ssid)
})log.Println("current ssid:" + wifiNotifier.GetCurrentSSID())
for {
}
}
```