| Module | Joyau::Wlan |
| In: |
Drawable.cpp
|
Ruby’s stdlib includes a Sock class, as well as classes easying the use of HTTP and FTP protocols. These classes can be used, but the PSP requires some initialisation before being able to use them.
This module contains the basic methods which can allow you to use theme. This means :
Loading net modules Connecting to one of the access points Checking the access points
Once you’re connected, everything is transparent: you can use sockets as usual.
Returns whether the wlan button is enabled.
/* Returns whether the wlan button is enabled. */ VALUE Wlan_button_enabled(VALUE self)
Returns the wlan access points in an array of arrays. It returns something in the following form :
[
["ip", "name"], # Access point at 1
["ip", "name"], # Access point at 2
["ip", "name"], # Access point at 3
...
]
/*
Returns the wlan access points in an array of arrays.
It returns something in the following form :
[
["ip", "name"], # Access point at 1
["ip", "name"], # Access point at 2
["ip", "name"], # Access point at 3
...
]
*/
VALUE Wlan_configs(VALUE self)
Connects to a given acces point. You can specify a timeout in seconds. If the connection isn’t established after the specified timeout, a TimeoutError is raised.
/* call-seq: connect(access_point, timeout) Connects to a given acces point. You can specify a timeout in seconds. If the connection isn't established after the specified timeout, a TimeoutError is raised. */ VALUE Wlan_connect(VALUE self, VALUE config, VALUE timeout)
Returns whether we’re connected to an acces point.
/* Returns whether we're connected to an acces point. */ VALUE Wlan_is_connected(VALUE self)