Skip to content

Commit

Permalink
nodemcu: select explicitly the 2.4 GHz wifi network
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Jul 1, 2024
1 parent a92388d commit 567caae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,5 +363,18 @@ dashboard configuration in this repository:
nix run .#mqtt-dash-listen > nodemcu/mqtt-dash.json
```

### Troubleshooting

The device `tasmota_0E63DE` couldn't connect to the Wi-Fi network. I believe
this is because the 2.4GHz and 5GHz networks share the same SSID. I flashed
the latest tasmota firmware (14.1.0) on the device and selected the 2.4GHz
connection with the command:

```
Wifi 3
```

which corresponds to the Wi-Fi mode 802.11b/g (2.4 GHz).

[NixOSBootWifi]: https://nixos.org/manual/nixos/stable/#sec-installation-booting-networking
[NixOSRemoteBuilds]: https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html?highlight=builders#remote-builds
4 changes: 4 additions & 0 deletions nodemcu/provision.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ let
# HC-SR501 PIR motion sensor
# https://tasmota.github.io/docs/PIR-Motion-Sensors/
config-2c-3a-e8-0e-63-de = [
{
cmnd = "Wifi";
value = 3; # select explicitly the Wi-Fi mode 802.11b/g (2.4 GHz) for better connectivity
}
{
cmnd = "Template";
value = tasmota.template {
Expand Down

0 comments on commit 567caae

Please sign in to comment.