Commit Graph

70 Commits (f6fc71c501ff4668b018aa39194efcee6f929964)

Author SHA1 Message Date
Martin Kojtal b52c164028
Merge pull request #8911 from c1728p9/esp8266_flow_control_fix
Fix ESP8266 recv_udp timeout with flow control
2018-12-03 13:41:23 +01: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
Russ Butler 53ed3f5c3d Fix ESP8266 recv_udp timeout with flow control
UDP packets are always received as OOB data. Without checking for
new OOB data with a call to "_process_oob" then recv_udp never blocks.
If a UDP packet is not available then NSAPI_ERROR_WOULD_BLOCK is
returned. This causes mbed-os's DNS handling to always fail when
flow control is enabled.

This patch fixes recv_udp by always calling "_process_oob" regardless
of if flow control is enabled. This ensures that recv_udp follows the
timeout parameter and waits for new data to arrive.
2018-11-29 19:13:37 -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 e0924532e7 Reports NSAPI_STATUS_CONNECTING when trying to reconnect 2018-11-23 12:56:02 +02:00
Veijo Pesonen fefef0d855 Truncates TCP stream and NACKs UDP datagram when sending too much data
ESP8266 maximum packet size when sending is 2048 bytes.
2018-11-23 12:22:20 +02:00
Veijo Pesonen c0f9e65af6 Fixes return value check when calling ATCmdParser::read() 2018-11-22 15:57:46 +02:00
Veijo Pesonen 95511bc7eb Dropping duplicate "using namespace mbed;" 2018-11-22 15:57:33 +02:00
Veijo Pesonen 1f4a1af6ed Truncates data to be send to modem to 2048 bytes 2018-11-22 15:57:21 +02:00
Veijo Pesonen f54b25073c Drops std:: because string.h is included 2018-11-22 15:56:59 +02:00
Veijo Pesonen 934472be1d esp8266 driver - don't set UART flow control if no support 2018-11-09 16:03:41 +02:00
Veijo Pesonen 8dd6a5d039 Add ESP8266 driver v1.7 2018-11-09 14:49:48 +02:00
Cruz Monrreal 9226c5873d
Merge pull request #8550 from deepikabhavnani/mbed_h_fixes
Add required namespace instead of relying on mbed.h
2018-10-30 08:47:04 -05:00
deepikabhavnani 451cf7ccb3 Add required namespace instead of relying on mbed.h
mbed.h has 'using namespace mbed;', hence some of the files skip
adding required namespace to the code, it is always good to specify the
namespace around the elements in header and `using namespace` in
specific CPP files, instead of all
2018-10-25 12:43:59 -05:00
paul-szczepanek-arm 4f2645b3fc incorrect doc was copy pasted
replaced with copydoc instead
2018-10-24 20:57:25 +01: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