mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
fix: resolve whitespace (wsl_v5) issues - part 1
- Fix whitespace issues in cmd files (example-mdns, example-upnp, soundtouch-cli, websocket-demo) - Fix whitespace issues in client.go and websocket.go - Fix whitespace issues in test files - Restore accidentally removed deviceHost variable - Add proper spacing around loops, conditionals, and function calls Progress: Continuing to resolve remaining wsl_v5 linting issues
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
func main() {
|
||||
verbose := flag.Bool("v", false, "Enable verbose logging")
|
||||
timeout := flag.Duration("timeout", 5*time.Second, "Discovery timeout")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
// Configure logging
|
||||
@@ -38,9 +39,11 @@ func main() {
|
||||
|
||||
fmt.Println("Searching for SoundTouch devices via UPnP/SSDP...")
|
||||
fmt.Println("This will send M-SEARCH requests to multicast address 239.255.255.250:1900")
|
||||
|
||||
if *verbose {
|
||||
fmt.Println("Verbose logging enabled - watch for technical details...")
|
||||
}
|
||||
|
||||
fmt.Println()
|
||||
|
||||
start := time.Now()
|
||||
@@ -72,6 +75,7 @@ func main() {
|
||||
fmt.Println("No SoundTouch devices found via UPnP/SSDP")
|
||||
fmt.Println()
|
||||
fmt.Println("Technical Status:")
|
||||
|
||||
if *verbose {
|
||||
fmt.Println("✓ SSDP M-SEARCH request was sent (check logs above for details)")
|
||||
fmt.Println("✓ UDP multicast connection established")
|
||||
@@ -86,6 +90,7 @@ func main() {
|
||||
fmt.Println("- Network blocks multicast traffic (common in corporate networks)")
|
||||
fmt.Println("- Firewall blocks UDP port 1900")
|
||||
fmt.Println("- Devices are not advertising MediaRenderer service")
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user