0

I have a device with Tasmota 11.1.0 with two SSIDs configured. The device is now connecting to SSID2 and I would like it takes SSID1 as default one. When I replace SSID2 with a non-existing name, then tasmota switches to SSID1 without problem. I can't find any command to switch to SSID1 and set it as default. I tried in command line: ssid1 but it does nothing. Also WifiConfig.

The documentation is not clear to me

Ssid<x>     <x> = 1..2
<value> = set AP<x> Wi-Fi SSID and restart
1 = reset AP<x> Wi-Fi SSID to firmware default (STA_SSID1 or STA_SSID2) and restart
SSID are limited to 32 characters. Do not use special characters or white spaces in the SSID

How to setup default (preferred) SSID on Tasmota so when both are working desired one is used?

Chris
  • 101
  • 1
  • 1

3 Answers3

2

you may use below code on tasmota console, when you restart your Tasmota device it will try to connect SSID1

Backlog SSID1 <myssid>; Password1 <mypassword>; SSID2 <myssid2>; Password2 <mypassword2>
mehmet
  • 21
  • 2
0

Whilst the above will set the SSID and passwords it will not fix the users problem. I have had the same problem for years. I am now on 14.3.0 and the same problem exists. I had ABC as SSID1 and no SSID2 set. I now have XYZ as SSID1 and ABC as SSID2. The device always connects to SSID2. If i remove SSID2, it connects to SSID1. If I replace SSID2 with another it remains connected to SSID1. If I set the original ABC in either position, it uses that one.

0

To query or force a switch to a specific SSID enty (SSID1 or SSID2), there is an (undocumented?) ap cmnd which will show which entry is selected and allow you to specify "1" or "2" to connect to the access point.

The last known connected access point is marked as sta_active in the configuration. It will be restored on reboot and used in the default configuration until something triggers the unit to "switch" to the other AP (such as SSID missing).