We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1788f98 + d310104 commit 4b33dddCopy full SHA for 4b33ddd
examples/esp32spi_simpletest.py
@@ -63,11 +63,11 @@
63
64
if esp.status == adafruit_esp32spi.WL_IDLE_STATUS:
65
print("ESP32 found and in idle mode")
66
-print("Firmware vers.", esp.firmware_version)
67
-print("MAC addr:", [hex(i) for i in esp.MAC_address])
+print("Firmware vers.", esp.firmware_version.decode("utf-8"))
+print("MAC addr:", ":".join("%02X" % byte for byte in esp.MAC_address))
68
69
for ap in esp.scan_networks():
70
- print("\t%s\t\tRSSI: %d" % (str(ap["ssid"], "utf-8"), ap["rssi"]))
+ print("\t%-23s RSSI: %d" % (str(ap["ssid"], "utf-8"), ap["rssi"]))
71
72
print("Connecting to AP...")
73
while not esp.is_connected:
0 commit comments