Comments (4)
Bonjour,
J'avoue ne pas avoir testé node-wifi
sur un freeWifi.
Est ce que tu pourrais tester les manipulations suivantes ?
- lancer la commande
ifconfig
et vérifier que l'interface en0 existe bien. - lancer la commande `networksetup -setairportnetwork "en0" "freeWifi"
Pourrais-tu afficher le résultat ici ?
from node-wifi.
Bonjour,
En somme, le problème n'est pas FreeWifi, mais tout simplement que si tu n'arrive pas à te connecter à un réseau pour une raison ou une autre, Mac OS te reconnecte automatiquement à ton réseau wifi (en suivant l'ordre de la liste de préférence de réseau wifi).
from node-wifi.
C'est tout à fait possible mais j'avoue que node-wifi
devrait emettre un message d'erreur même si c'est jamais très simple avec les commandes wifi.
N'hésite pas à me dire de quelle manière je peux t'aider.
from node-wifi.
Je viens de tester avec la configuration suivante :
- macOS 10.12.5
- FreeWifi
Et cela fonctionne parfaitement avec le code qui tu as mis ci-dessus. Mon mac arrive à se connecter au freeWifi. Pour un réseau où le mot de passe est mauvais, il renvoie l'erreur suivante via la commande networksetup -setairportnetwork "en0" "freeWifi_secure" "toto"
:
Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)Failed to join network FreeWifi_secure.
Error: -3900 The operation couldn’t be completed. (com.apple.wifi.apple80211API.error error -3900.)
Et la même erreur est renvoyée via node-wifi
.
Cela peut dépendre de ta configuration réseau (si échec automatiquement se reconnecter à un autre réseau ?). Mais j'avoue ne pas trop m'y connaître en mac sur cela. A tout hasard, je vais améliorer la stabilité en améliorant les gestions des retours d'erreurs dans node-wifi
.
from node-wifi.
Related Issues (20)
- Windows: not able to connect to network due to non-admin rights on PC
- How can i see ip address when i connect to wi-fi ? HOT 3
- separate cli usage to a own package? HOT 2
- Error: spawn nmcli ENOENT (Linux/Raspberry Pi) HOT 15
- How to fix ssid name like �? HOT 2
- No Error Thrown at Wrong Password HOT 1
- [Bug]: Returning [] empty array on macOS Monterey HOT 21
- Send fake Mac address when connecting to a network HOT 1
- [Bug]: Linux Disconnect Not Working HOT 4
- [Feat]: More information about `.init()` HOT 2
- [Bug]: not support security WPA3 on Windows 10 HOT 1
- [Bug]: Win 10 and 11 differences in `getCurrentConnections`
- [Feat]: Get empty BSSID string in macOS Monterey (> 12.1) HOT 2
- [Feat]: Add language support HOT 1
- [Bug]: In ubuntu22.04, the return value is an empty array when i use getCurrentConnections method
- [Bug]: Wrong data returns for getCurrentConnections on windows 11 HOT 3
- [Bug]: Running in ESM (*.mjs) returns "ERROR : use init before" HOT 1
- Still maintained? HOT 1
- I can't get wifi list when I use wifi.scan().
- [Bug]: Unable to disconnect device in Ubuntu 20.04.3 LTS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-wifi.