mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
1796f50264
This commit adds support for a new feature in SRP client which allows it to save the selected server info (by the auto-start feature) in non-volatile settings. On SRP client restart (e.g., due to a device reset) the client will select the same server when searching to discover and pick one from the Thread Network Data service entries. Config `OPENTHREAD_CONFIG_SRP_CLIENT_SAVE_SELECTED_SERVER_ENABLE` can be used to enable/disable this feature. The server info is saved only after the host info is successfully registered with the server and if it is selected by auto-start from a network data SRP *unicast* service entry. This commit also adds `test_srp_client_save_server_info.py` test-case which verifies the behavior of the new feature.