Commit Graph

18 Commits (e25611aad848e2adabaa8209f3ae4cc91aa9a788)

Author SHA1 Message Date
Seppo Takalo 8bf3ce3d68 ESP8266: Set HW reset time to 2ms 2019-01-08 18:18:46 +02:00
Michal Paszta 034c72e12c Prevent ESP8266 stopping HW control on init 2018-12-20 13:22:13 +01: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
Michal Paszta d6e385b330 ESP8266 send returns WOULD_BLOCK error when busy 2018-12-11 17:48:37 +01:00
Veijo Pesonen e4de165a32 [ESP8266] Fixes namespace collision 2018-12-11 09:49:23 +02:00
Veijo Pesonen 02aeab29d3 [ESP8266] powers down the modem on disconnect 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
Cruz Monrreal 61ade84447
Merge pull request #8875 from deepikabhavnani/fix_components
Add dependency checks to components
2018-12-10 19:20:30 -06:00
Martin Kojtal 0d0740f17e
Merge pull request #8890 from michalpasztamobica/esp8266_disconnect_no_connection
ESP8266 disconnect returns ERROR_NO_CONNECTION
2018-12-03 13:40:54 +01:00
Deepika 76220fa89c Add Serial + EventQueue dependency to ESP8266 2018-11-30 15:38:28 -06:00
Michal Paszta eb9c688574 ESP8266 disconnect returns ERROR_NO_CONNECTION 2018-11-28 11:23:09 +01: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 f54b25073c Drops std:: because string.h is included 2018-11-22 15:56:59 +02:00
Veijo Pesonen 8dd6a5d039 Add ESP8266 driver v1.7 2018-11-09 14:49:48 +02:00
Juha Ylinen 273f7c6fd6 ESP8266: Fix compilation error when default interface is enabled
Compile [  1.3%]: ESP8266Interface.cpp
[Error] ESP8266Interface.cpp@582,33: cannot declare static function inside another function
[Error] ESP8266Interface.cpp@583,13: cannot convert 'ESP8266Interface (*)()' to 'WiFiInterface*' in return
Failed to build library
2018-09-03 12:56:26 +03:00
Seppo Takalo fc5bf5986b Add ESP8266 driver v1.6 2018-09-01 12:36:28 -05:00