Skip to content

fix: Resolve invalid SSID of access point for Wi-Fi config#1

Merged
marcullo merged 1 commit into
masterfrom
fix/ssid
Jul 17, 2020
Merged

fix: Resolve invalid SSID of access point for Wi-Fi config#1
marcullo merged 1 commit into
masterfrom
fix/ssid

Conversation

@marcullo

Copy link
Copy Markdown
Member

Related to jasbur#88

@marcullo marcullo force-pushed the fix/ssid branch 2 times, most recently from 293dac3 to 4681884 Compare July 16, 2020 10:23
@marcullo marcullo merged commit 3e0482c into master Jul 17, 2020
@marcullo marcullo deleted the fix/ssid branch July 17, 2020 09:17
@BramWerbrouck

Copy link
Copy Markdown

So this should be the solution on jasbur#88 ssid is not displaying last 4 serial? I already installed the version of jasbur/RaspiWIFi , how can I update so my access point is show like “MY_NETWORK1234” (where 1234 stands for the last 4 numbers of the serial of my raspberry pi) instead of “MY_NETWORK 1.1” ?

@marcullo

marcullo commented Sep 7, 2021

Copy link
Copy Markdown
Member Author

@BramWerbrouck If your /proc/cpuinfo file contains other stuff than serial number at the end, the result of

subprocess.check_output(['cat', '/proc/cpuinfo'])[-5:-1]

proposed by the jasbur does not contain last four bytes of serial. I applied more careful code which takes the serial number based on line regex match: ^Serial\s*:\s*(\w+)$ so if any additional lines follow that line, it would still be fine.

You can apply the diff of this PR to your code on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants