SSID or security key with special characters? Escaping?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AnPu_3825896
Level 1
Level 1
First like given

Does the lower level WiFi code and the radio driver support using network with SSID's and/or security keys that have special characters?
Specifically: the characters that would have to be escaped in JSON, like double-quote characters, blackslashes, and tabs.

Do the strings have to have escaping in them when written to the WiFi DCT area?
Do they need double escaping?

e.g. if I had a network which used WPA2 AES PSK security with a key that is (in python raw-string parlance): r'''test"test\ttest'''

How would that need to be written to the WiFi DCT to be able to join?

0 Likes
1 Solution
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

The SSID and passphrase are stored in string form in DCT and any ASCII character should be acceptable. If it comes in some other format like JSON, the application code should parse the format to extract the raw string which could then be stored in DCT for SSID or passphrase.

View solution in original post

1 Reply
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

The SSID and passphrase are stored in string form in DCT and any ASCII character should be acceptable. If it comes in some other format like JSON, the application code should parse the format to extract the raw string which could then be stored in DCT for SSID or passphrase.