Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/stenya/wifinotifier

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/stenya/wifinotifier

  • v0.0.0-20210412130221-a2e7d50f0a9e
  • Source
  • Go
  • Socket score

Version published
Created
Source

wifiNotifier

Detect when WiFi changed (connected or disconnected or ssid changed), support Windows, Mac OS, Linux.
Additional functionality:

  • get current WiFi SSID
  • scan for a WiFi networks
  • get current network security (checking if the current network is insecure)

Note: Some functionality requires privileged user rights.

Examples:

package main

import (
	"fmt"
	"time"

	"github.com/stenya/wifiNotifier"
)

func main() {

	fmt.Println("* available networks:")
	fmt.Println(wifiNotifier.GetAvailableSSIDs())

	fmt.Printf("* current ssid: %v\n", wifiNotifier.GetCurrentSSID())
	fmt.Printf("* current WiFi security: %v\n", wifiNotifier.GetCurrentNetworkSecurity())

	wifiNotifier.SetWifiNotifier(func(ssid string) {
		fmt.Printf("* onWifiChanged. Current ssid: %v (security %v)\n", ssid, wifiNotifier.GetCurrentNetworkSecurity())
	})

	for {
		time.Sleep(time.Second)
	}
}

FAQs

Package last updated on 12 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc