esp_local_ctrl: added sec1 and sec2 support in esp_local_ctrl example

This commit is contained in:
harshal.patil
2022-10-11 23:21:40 +05:30
parent 6e65b61c8a
commit f9db1ec366
5 changed files with 205 additions and 20 deletions

View File

@@ -66,7 +66,9 @@ def test_examples_esp_local_ctrl(dut: Dut) -> None:
# Running mDNS services in docker is not a trivial task. Therefore, the script won't connect to the host name but
# to IP address. However, the certificates were generated for the host name and will be rejected.
cmd = ' '.join([sys.executable, os.path.join(idf_path, rel_project_path, 'scripts/esp_local_ctrl.py'),
'--sec_ver 0',
'--sec_ver 2',
'--sec2_username wifiprov',
'--sec2_pwd abcd1234',
'--name', dut_ip,
'--dont-check-hostname']) # don't reject the certificate because of the hostname
esp_local_ctrl_log = os.path.join(idf_path, rel_project_path, 'esp_local_ctrl.log')