Closed bmasmhj closed 2 years ago
Command "LANG=C nmcli -w 10 device wifi connect "wifi-name" password "123456789" ifname "en1" 2>&1" exited with code 1: Error: Device 'en1' is not a Wi-Fi device.
$example = new Example(); try { $example->device = 'en1'; // What does this device [ 'en1' ] means. ? $example->getAllNetworks(); $example->connect('wifi-name', '123456789'); $example->disconnect(); } catch (Exception $e) { // }
solution ; I used wlp3s0 and worked for me
Command "LANG=C nmcli -w 10 device wifi connect "wifi-name" password "123456789" ifname "en1" 2>&1" exited with code 1: Error: Device 'en1' is not a Wi-Fi device.
$example = new Example(); try { $example->device = 'en1'; // What does this device [ 'en1' ] means. ? $example->getAllNetworks(); $example->connect('wifi-name', '123456789'); $example->disconnect(); } catch (Exception $e) { // }