minerva/hardware/maixduino/maix_debug_wifi.py
pyr0ball 173f7f37d4 feat: import mycroft-precise work as Minerva foundation
Ports prior voice assistant research and prototypes from devl/Devops
into the Minerva repo. Includes:

- docs/: architecture, wake word guides, ESP32-S3 spec, hardware buying guide
- scripts/: voice_server.py, voice_server_enhanced.py, setup scripts
- hardware/maixduino/: edge device scripts with WiFi credentials scrubbed
  (replaced hardcoded password with secrets.py pattern)
- config/.env.example: server config template
- .gitignore: excludes .env, secrets.py, model blobs, ELF firmware
- CLAUDE.md: Minerva product context and connection to cf-voice roadmap
2026-04-06 22:21:12 -07:00

41 lines
1.1 KiB
Python
Executable file

# Debug script to discover WiFi module methods
# This will help us figure out the correct API
import lcd
lcd.init()
lcd.clear()
print("=" * 40)
print("WiFi Module Debug")
print("=" * 40)
# Try to import WiFi module
try:
from network_esp32 import wifi
print("SUCCESS: Imported network_esp32.wifi")
lcd.draw_string(10, 10, "WiFi module found!", 0xFFFF, 0x0000)
# List all attributes/methods
print("\nAvailable methods:")
lcd.draw_string(10, 30, "Checking methods...", 0xFFFF, 0x0000)
attrs = dir(wifi)
y = 50
for i, attr in enumerate(attrs):
if not attr.startswith('_'):
print(" - " + attr)
if i < 10: # Only show first 10 on screen
lcd.draw_string(10, y, attr[:20], 0x07E0, 0x0000)
y += 15
print("\nTotal methods: " + str(len(attrs)))
except Exception as e:
print("ERROR importing wifi: " + str(e))
lcd.draw_string(10, 10, "WiFi import failed!", 0xF800, 0x0000)
lcd.draw_string(10, 30, str(e)[:30], 0xF800, 0x0000)
print("\n" + "=" * 40)
print("Debug complete - check serial output")
print("=" * 40)