How to connect to WIFI in OpenBSD?
382
No. The above command should have given you "ksh: wpa-psk: not found" and "ifconfig: wpapsk: bad value". Where did you get those commands and arguments from?
To correctly configure a "normal" wifi connection use:
# ifconfig iwn0 nwid ID wpakey PASSPHRASE
Or for more than one network:
# ifconfig iwn0 join ID wpakey PASSPHRASE
For more info, please refer to ifconfig(8), hostname.if(5) and FAQ 6.
Related videos on Youtube
Author by
rnn
Updated on September 18, 2022Comments
-
rnn almost 2 years
I want my app work even closed or on background. I found this on web
react-native-background-task
I used this but it works every in 7m30s . But I want work my app always even app off. I mean I want to get app location in every second.
I used this :
BackgroundTask.define(() => { navigator.geolocation.watchPosition((position) => { console.log(position.coords.latitude); var lat = parseFloat(position.coords.latitude); var lng = parseFloat(position.coords.longitude); console.log("lat :",lat); console.log("lng :",lng); }); BackgroundTask.finish() }) export default class App extends Component { componentDidMount(){ BackgroundTask.schedule(); }
How to do this ?
-
Zé Loff over 4 yearsMinor addition:
join
is meant to specify a network that will automatically be joined if found. Its main use case is inside/etc/hostname.*
files (hostname.iwn0
, in the OP's case), where you can store a list of known networks (and their respective passphrases, if applicable).