https://toitlang.org/ logo
Is there an easy way to access the wifi credential...
# help
a
I have a case where I want to display this info on a screen, but can't currntly find the pkg, lib or sdk part to let me see this easily. Is it possible?
k
Yes, I think so - unless we ended up adding the information as an asset for the system process.
I think
firmware.config
should work on Jaguar. Give it a spin!
a
Yupo, this works a charm
Copy code
effective := firmware.config["wifi"]
    fw-ssid/string? := effective.get wifi.CONFIG-SSID
    fw-password/string := effective.get wifi.CONFIG-PASSWORD --if-absent=: ""