Commit Graph

37 Commits (4b3cddff2a66d5b13ad861e8782d1d630c2479c1)

Author SHA1 Message Date
Michal Paszta 8175e32717 Add get_time function for ESP8266
get_time function allows access to SNTP functionalities of ESP8266
2020-03-23 19:20:48 +02:00
Anna Bridge 8c17270306
Merge pull request #12480 from 0xc0170/fix_spdx
Fix SPDX identifiers and licenses (excluding features and targets)
2020-02-21 16:34:30 +00:00
Martin Kojtal 7789ecae16 component wifi: fix SPDX identifier 2020-02-21 07:01:03 +00:00
Michal Paszta 458957d399 IPCore deprecated string-based API removal
String-based functions should be replaced with an explicit DNS hostname resolution and a SocketAddress-based API.
2020-02-06 11:27:49 +02:00
Michal Paszta f032274729 ESP8266: Add built-in DNS resolution (disabled by default) 2020-01-10 09:17:12 +02:00
Antti Yli-Tokola 10687d6c3f Make ESP8266 compatible with non rtos build 2019-12-04 09:23:18 +02:00
Michal Paszta 83cd0d6c1a ESP8266: add SocketAddress-based API for get_ip_address, get_gateway and get_netmask 2019-11-27 20:02:27 +02:00
Martin Kojtal 656fed16da
Merge pull request #11430 from tymoteuszblochmobica/name
Member get_interface_name implemented  in ESP8266Interface
2019-09-20 14:17:05 +02:00
Dominika Maziec f5ccbe7972 esp8266 nonblocking connect/disconnect
`ESP8266Interface::connect()` and `ESP8266Interface::disconnect()` can be used in terms of asynchronous operations. Mainly, it is based on newly added private variable of type  `esp_connection_software_status` which is used to keep tracking of state of connection.`wifi_connect_nonblock` test was renamed and amended to test both `connect()` and `disconnect()` operation
2019-09-10 09:37:46 +02:00
Tymoteusz Bloch 56ede03e37 Member get_interface_name implemented in ESP8266Interface 2019-09-06 11:00:31 +02:00
Chun-Chieh Li 650e2e593c ESP8266: Support power on/off in custom wiring
In custom wiring, there can be a power pin to power on/off the modem. This
commit supports it and allows for the following configurations:

- power pin name
- power pin polarity
- power on/off delay time
2019-08-27 17:57:06 +08:00
Michal Paszta 3e70df7f0a ESP8266: Timeout if chip keeps returning errors
The ESP chip returns timeout, but keeps trying to connect, so we want to
keep track of time ourselves, instead of relying on the chip's timeout.
This fixes failing WIFI-CONNECT-SECURE-FAIL test.
2019-04-16 14:23:36 +03:00
Michal Paszta 5dbaa40eb0 Add the INTERRUPTIN compilation guard for ESP8266 2019-03-28 11:16:30 +02:00
Cruz Monrreal ecfe0c83ae
Merge pull request #9955 from VeijoPesonen/esp8266_wifi_scan_timeout
ESP8266: treats Wi-Fi scan results as out-of-band data; new API to adjusting Wi-Fi scan settings
2019-03-27 00:25:43 -05:00
Veijo Pesonen e2bd0644df ESP8266: new API for setting Wi-Fi scan active/passive mode
Makes possible to decide between active and passive mode.

Makes possible to adjust for how long a single channel is scanned.
2019-03-14 12:01:42 +02:00
Veijo Pesonen 50984e5d2d ESP8266: makes usable channels runtime configurable 2019-03-05 10:40:22 +02:00
Veijo Pesonen eb27a23641 ESP8266: Exposes country code config API 2019-03-05 10:40:21 +02:00
Veijo Pesonen 96247dd76a ESP8266: sets hardcoded country code(CC) policy to track AP's CC 2019-03-05 10:40:21 +02:00
Veijo Pesonen d6701c36a3 ESP8266: does OOB handling based on SIGIO and not on a certain interval 2019-02-18 12:39:16 +02:00
Veijo Pesonen 2d6b63d5a2 ESP8266: prevents doing reset twice in a row, unnecessary 2019-02-14 11:08:36 +02:00
Veijo Pesonen 71e5321f0f ESP8266: fixes network status refresh procedure 2019-02-14 10:41:04 +02:00
Michal Paszta 6a184da381 ESP8266: connect() can handle ESP's errors.
ESP8266Interface::connect() checks the exact return value from
the underlying ESP8266::connect() call.
Increased timeout for network-wifi greentea tests to 6 minutes.
2019-02-11 17:20:14 +02:00
Veijo Pesonen 53c2879a5c ESP8266: makes guarding variable for deferring events atomic 2019-01-30 17:00:56 +02:00
Veijo Pesonen 7d3621dae4 ESP8266: reduces SIGIO signaled to the upper layers 2019-01-30 17:00:56 +02:00
Veijo Pesonen c4d96e6309 ESP8266: provides blocking/non-blocking connect
Implements NetworkInterface::set_blocking() and implements the
functionality to distinguish between the two in connect()
2019-01-21 16:22:53 +02:00
Veijo Pesonen 58c1a88348 ESP8266: turns connect fully to non-blocking mode
Blocking mode connect is not supported anymore when this patch is
applied
2019-01-21 16:22:53 +02:00
Veijo Pesonen c60c5244c1 ESP8266: makes connect() connection status aware 2019-01-21 14:43:35 +02:00
Russ Butler 6210805696 Fix ESP8266 "Link Type" errors after reset
As part of the ESP8266 connect sequence, ESP8266Interface::connect,
a software reset is performed. If the ESP8266 had been connected
previously then the ESP8266 will sometimes send a "WIFI DISCONNECT" OOB
message before performing the software reset. This causes the
ESP8266::_oob_connection_status to change its state (_conn_status) from
NSAPI_STATUS_DISCONNECTED to NSAPI_STATUS_CONNECTING. This causes
ESP8266Interface::_startup, called later in the boot seqeunce, to skip
ESP8266::startup. Without this call socket mux mode (CIPMUX=1) is never
enabled and all send commands using this format fail with a "Link Type"
error.

This patch fixes that problem by unconditionally calling
ESP8266::startup as part of the ESP8266 connect sequence.
2018-12-17 10:11:52 -06:00
Veijo Pesonen e4de165a32 [ESP8266] Fixes namespace collision 2018-12-11 09:49:23 +02:00
Veijo Pesonen 8415e49835 Fixes connect, and network-status logic 2018-12-11 09:49:23 +02:00
Veijo Pesonen 9857ee1c17 [ESP8266] Adds support for controlling HW reset of the modem from the driver
While connecting will run HW reset for the modem if reset wire is attached to a know pin.
2018-12-11 09:49:23 +02:00
Deepika 76220fa89c Add Serial + EventQueue dependency to ESP8266 2018-11-30 15:38:28 -06:00
Deepika b32c6ba2a5 Components if using RTOS modules should be enabled only when RTOS is present
Build failures were observed when rtos is ignored with .mbedignored.
Components dependent on RTOS should be guarded with MBED_CONF_RTOS_PRESENT
2018-11-27 13:55:59 -06:00
Deepika 6c6ef87c19 Fix header files used in esp8266
"ns_types.h" results in build failure when networking feature is ignored with
.mbedignored. ESP8266 component should be enabled only when NSAPI is present.
2018-11-27 13:55:59 -06:00
Veijo Pesonen 8dd6a5d039 Add ESP8266 driver v1.7 2018-11-09 14:49:48 +02:00
paul-szczepanek-arm 4f2645b3fc incorrect doc was copy pasted
replaced with copydoc instead
2018-10-24 20:57:25 +01:00
Seppo Takalo fc5bf5986b Add ESP8266 driver v1.6 2018-09-01 12:36:28 -05:00