guild icon
Toit
#Is there an easy way to access the wifi credentials configured for jag within toit code?
Thread channel in help
addshore
addshore 04/22/2025 03:59 PM
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?
bitphlipphar
bitphlipphar 04/22/2025 04:02 PM
Yes, I think so - unless we ended up adding the information as an asset for the system process.
bitphlipphar
bitphlipphar 04/22/2025 04:03 PM
Program your microcontrollers in a fast and robust high-level language. - toitlang/toit
💟1
bitphlipphar
bitphlipphar 04/22/2025 04:08 PM
I think firmware.config should work on Jaguar. Give it a spin!
addshore
addshore 04/22/2025 04:11 PM
Yupo, this works a charm
effective := firmware.config["wifi"] fw-ssid/string? := effective.get wifi.CONFIG-SSID fw-password/string := effective.get wifi.CONFIG-PASSWORD --if-absent=: ""
👍1
5 messages in total