aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/modwlan.c
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-08-30all: Convert remaining "mp_uint_t n_args" to "size_t n_args".Damien George
This is to have consistency across the whole repository.
2017-08-21all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-03-29cc3200: Update for changes to mp_obj_str_get_data.Damien George
2017-02-22cc3200: When raising OSError's use MP_Exxx as arg instead of a string.Damien George
2017-02-22cc3200: Move wlan socket glue functions from modwlan to modusocket.Damien George
It saves about 400 bytes of code space because the functions can now be inlined.
2017-02-21cc3200/mods/modwlan: Add int casts to silence compiler warnings.Damien George
2017-02-21cc3200/mods/modwlan: Allow antenna diversity to be fully compiled out.Damien George
2017-02-21cc3200/mods/modwlan: Make multi-threaded a proper compile-time option.Damien George
2017-02-21cc3200/mods/modwlan: Remove unused header includes; simplify others.Damien George
2017-02-21cc3200: Remove util/std.h, can just use stdio.h instead.Damien George
2017-02-21cc3200: Use simplelink API instead of emulated BSD API.Damien George
Most of cc3200 uses explicit simplelink calls anyway, and this means there are no longer any clashes with macros from the C stdlib.
2017-01-07cc3200/modwlan: Add network.WLAN.print_ver() diagnostic function.Paul Sokolovsky
Prints NWP/MAC/PHY version, as affected by servicepack installed.
2017-01-04all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky
Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
2016-12-02py/stream: Move ad-hoc ioctl constants to stream.h and rename them.Damien George
The constants MP_IOCTL_POLL_xxx, which were stmhal-specific, are moved from stmhal/pybioctl.h (now deleted) to py/stream.h. And they are renamed to MP_STREAM_POLL_xxx to be consistent with other such constants. All uses of these constants have been updated.
2016-10-18cc3200: Use mp_raise_XXX helper functions to reduce code size.Damien George
Reduces code size by 632 bytes.
2016-04-06cc3200/mods/modwlan: Include stream.h after recent refactor.Paul Sokolovsky
2016-02-21cc3200: Improve robustness of WLAN during sleep modes.danicampora
2016-01-11py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.Damien George
The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
2015-11-18docs: Update docs for WiPy wlan.connect().Noah
- The link establishment timeout is infinite by default - Fix typo in notes about the auth kwarg
2015-10-31all: Add py/mphal.h and use it in all ports.Damien George
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
2015-10-29cc3200: Switch from HAL_Delay() to mp_hal_delay_ms().Paul Sokolovsky
2015-10-25cc3200: Enable WLAN irq on creation.danicampora
2015-10-19cc3200: WLAN class can retrieve the existing instance.danicampora
2015-10-17cc3200: In scan results rename 'auth' field to 'sec'.danicampora
As defined by the new API, since 'auth' is actually a tuple composed by the security type and the key.
2015-09-27cc3200: Always reset WLAN after setting the mode.Daniel Campora
2015-09-27cc3200: Make auth param positional in wlan.connect.Daniel Campora
2015-09-27cc3200: Rename pyb module to machine.Daniel Campora
2015-09-27cc3200: New WLAN API including test.Daniel Campora
2015-09-27cc3200: New irq API, affects all classes that provide the irq method.Daniel Campora
2015-09-21cc3200: New SD and RTC API plus os and time modules' extensions.Daniel Campora
2015-08-16cc3200: Correct WLAN constructor argument checking.Daniel Campora
2015-08-16cc3200: Improve callback API.Daniel Campora
Rename "wakes" param to "wake_from" and make "value" an object instead of an integer.
2015-08-09cc3200: Improve support for WEP security.Daniel Campora
Key is always entered as a string, but if security is WEP, the key is converted automatically to hex before connecting or configuring the device as an AP.
2015-08-09cc3200: Add nic.iwconfig() to set/get WLAN configuration.Daniel Campora
Changes are based on this post: https://github.com/micropython/micropython/issues/876#issuecomment-115255551 The constructor can optionally take the same params of iwconfig in order to configure WiFi when creating the object. Params are keyworkd only. The WiPy accepts: - mode (int -> WLAN.AP or WLAN.STA) - ssdi (string) - security (int -> WLAN.OPEN, WLAN.WEP, WLAN.WPA, WLAN.WPA2) - key (string) - channel (int (1-11)) - antenna (int -> WLAN.INTERNAL, WLAN.EXTERNAL)
2015-07-30cc3200: Append last 2 bytes of the MAC address to the default SSID.Daniel Campora
2015-07-16cc3200: Make socket stream methods return POSIX error codes.Daniel Campora
2015-07-10cc3200: Refactor and clean-up socket closing code.Daniel Campora
2015-07-10cc3200: Set simplelink time and date when enabling WLAN.Daniel Campora
2015-07-02cc3200: Add modussl, ssl sockets subclassed from normal sockets.Daniel Campora
Stream methods were added to normal sockets as in the unix port.
2015-07-02cc3200: Optimize check for WLAN AP mode.Daniel Campora
2015-07-02cc3200: Raise an exception if trying to scan for networks in AP mode.Daniel Campora
2015-07-02cc3200: Add socket.timeout and socket.error exceptions.Daniel Campora
2015-06-29cc3200: Correct socket settimeout time format.Daniel Campora
2015-06-10cc3200: Change MP_OBJ_NULL for mp_const_none in params default value.Daniel Campora
2015-06-07cc3200: Add antenna selection feature to WLAN.Daniel Campora
2015-06-03cc3200: Add method to configure the servers timeout.Daniel Campora
With network.server_timeout(secs) the timeout can be changed. The default value is 300 secs. Minimmum accpeted is 5 secs. Without params the function returns the current configured timeout.
2015-05-29cc3200: Clean up WLAN API. Make WLAN.info() an attrtuple.Daniel Campora
2015-05-28cc3200: Make small changes in WLAN to improve the API.Daniel Campora