Hi everyone,
I'm having trouble connecting my Raspberry Pi 3B+ to a mobile hotspot over Wi-Fi. I’m using Raspberry Pi OS (Linux), and here’s the issue:
When I configure the hotspot to 2.4 GHz, the Raspberry Pi fails to connect.
When I switch the hotspot to 5 GHz, the Pi connects immediately without issues.
The Pi connects just fine to 2.4 GHz networks from regular routers, so the problem seems to happen only when using a mobile hotspot in 2.4 GHz mode.
I'm using the following custom Python code to manage the Wi-Fi connection programmatically:
[ ... ]
Thanks in advance for any help or suggestions!
"Thanks in advance for any help or suggestions!"
Python code relies on indentation (left-hand white space) for its syntax. The forum software provides [ _Code_ ] tag markup to preserve indentation. This is found on the fifth 'button' from the left at the top of the message entry screen. You can - and should - retrospectively correct your posting.
The [ PREVIEW ] button is useful for checking the presentation of your post.
Can your RPi3B+ make an association with the nominated hotspot if you configure it 'manually'. (ie. without using the script you have posted.)?
Which variant of RasPiOS are you using? 32-bit/64-bit? Desktop or LITE? Bookworm or something earlier?
Statistics: Posted by B.Goode — Wed Aug 06, 2025 11:57 am