station: secondary ssid to connect to if main fails?

is it possible to make a setup on a client device (sxt with level3 licence) to add a 2nd ssid the device would connect to if the 1st ssid fails?
or do i need to have the same SSID on both aps?
i have 2 aps mounted and running on different locations , and the client can “hear” both of them with good signal. occasionaly they will fail (power outage or i turn them off for specific reasons).
it’s not important for the client to switch back to the main ssid, i can do it manually by kicking it from the 2nd ap, it’s just important for the client to connect to either of them.
each AP has a different SSID for logistic reasons, it’s a personal network, not business or revenue-focused.

Using MAC and/or SSID of various APs you can set the preferred order of connectionc, if previous fail.

https://wiki.mikrotik.com/wiki/Manual:Interface/Wireless#Connect_List

Connectlist indeed, combined with security profiles.
Pretty easy. Works like a charm.

On devices where I use it (a couple of maplites) I set my phone hotspot as first option.
So where ever I am, there is ALWAYS one option available to connect.

thanks, never used it but i tried and it works well. as soon the main ssid is not available, it connects to the 2nd one. didn’t try what happens when the 1st appears again, does it reconnect back or it keeps being connected the 2nd ssid, but at this point it’s not important.
thanks

It stays connected to whatever is available.