diff options
author | Daniel Campora <daniel@wipy.io> | 2015-08-11 11:18:02 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-08-16 20:17:52 +0200 |
commit | ea5061e409449118ed45ce2956800780631bcf9e (patch) | |
tree | 107417699e361857372ec07670ae68770cf75832 /docs/library/network.rst | |
parent | 4c5bfe2d10cd8397e970c4c23f6c15b97133fcc0 (diff) | |
download | micropython-ea5061e409449118ed45ce2956800780631bcf9e.tar.gz micropython-ea5061e409449118ed45ce2956800780631bcf9e.zip |
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
Diffstat (limited to 'docs/library/network.rst')
-rw-r--r-- | docs/library/network.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst index 99a300dbec..1b00c4f0d0 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -336,12 +336,12 @@ class WLAN Returns a list of the devices currently connected. Each item in the list is a tuple of ``(ssid, mac)``. - .. method:: wlan.callback(wakes) + .. method:: wlan.callback(wake_from) Create a callback to be triggered when a WLAN event occurs during ``pyb.Sleep.SUSPENDED`` mode. Events are triggered by socket activity or by WLAN connection/disconnection. - - ``wakes`` can only be ``pyb.Sleep.SUSPENDED``. + - ``wake_from`` must be ``pyb.Sleep.SUSPENDED``. Returns a callback object. |