Rajkumar Kanagaraj
3e2e074938
Fix esp8266 driver compilation warning
2020-06-17 18:47:14 +01:00
Martin Kojtal
b53dc6695b
Merge pull request #12433 from kjbracey-arm/chrono_esp
...
ESP8266: Convert to Chrono
2020-05-13 19:43:42 +02:00
Martin Kojtal
8e789b0162
Merge pull request #12721 from michalpasztamobica/esp8266_set_network
...
ESP8266: static address configuration and dhcp enable/disable added
2020-05-13 19:26:26 +02:00
Kevin Bracey
d114f54dce
ESP8266: Convert to Chrono
2020-05-11 10:08:29 +03:00
cyliangtw
89077b1d8b
fulfill astyle
2020-04-07 18:32:36 +08:00
cyliangtw
fd7b160fd1
esp8266 support baud-rate switch
2020-04-07 17:27:57 +08:00
Michal Paszta
9f347c56c4
ESP8266: static address and dhcp added
2020-03-31 08:26:50 +03:00
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
Martin Kojtal
7789ecae16
component wifi: fix SPDX identifier
2020-02-21 07:01:03 +00:00
Marcin Tomczyk
46718d0430
ONME-3433 ESP8266 driver support for UDP get - modified ESP8266 driver to support UDP connection in server mode (get)
2020-01-31 09:03:14 +01:00
Anna Bridge
80fe861f1d
Merge pull request #12035 from kjbracey-arm/callback_prep
...
Preparation for Callback changes
2020-01-21 11:50:43 +00:00
Martin Kojtal
194fc6667e
Merge pull request #12234 from michalpasztamobica/esp8266_builtin_dns
...
ESP8266: Add built-in hostname resolution handling (disabled by default)
2020-01-15 13:00:57 +01:00
Martin Kojtal
f4842c7c6d
Merge pull request #12157 from michalpasztamobica/esp8266_send_retry
...
ESP8266: Avoid duplicate data sends
2020-01-15 12:57:12 +01:00
Michal Paszta
ea2f36eadf
ESP8266: accept partial writes for TCP and clean up code
2020-01-10 16:53:23 +02:00
Michal Paszta
f032274729
ESP8266: Add built-in DNS resolution (disabled by default)
2020-01-10 09:17:12 +02:00
Kevin Bracey
d6a48b5124
Turn NULLs into nullptr
...
Avoids overload problems with Callback(nullptr) versus Callback(fnptr).
2020-01-09 14:52:54 +02:00
Chun-Chieh Li
4405ab46b6
ESP8266: Simplify flow control and enable per-socket reconnection
...
1. Fix 'spurious close' by adding close() in open(). 'spurious close' gets frequent and cannot ignore when send() changes to asynchronous. User can retry open() until 'spurious close' gets true.
2. Allow only one actively sending socket because:
(1) ESP8266 AT packets 'SEND OK'/'SEND FAIL' are not associated with socket ID. No way to tell them.
(2) In original implementation, ESP8266::send() is synchronous, which implies only one actively sending socket.
3. Register 'SEND OK'/'SEND FAIL' oobs, like others in ESP8266::ESP8266 constructor. Don't get involved in oob management with send status because ESP8266 modem possibly doesn't reply these packets on error case.
4. Now that ESP8266::send() changes to asynchronous, drop the code with _parser.recv("SEND OK")/_parser.recv("SEND FAIL"). _parser.recv("SEND OK")/_parser.recv("SEND FAIL") and 'SEND OK'/'SEND FAIL' oobs both consume 'SEND OK'/'SEND FAIL' packets and complicate flow control.
2020-01-09 12:48:22 +02:00
Michal Paszta
d23d55c24a
ESP8266: Introduce single send_status instead of two flags
2020-01-02 17:21:04 +02:00
Tymoteusz Bloch
0adb47b3aa
Fixed ESP8266 nullpointer dereference.
2019-12-31 16:45:51 +01:00
Michal Paszta
902feddf2e
ESP8266: Improve error handling and partial sends
2019-12-31 10:30:37 +02:00
Michal Paszta
de2896c659
ESP8266: add a retry mechanism to avoid duplicate data sends
...
We are now checking if ESP8266 has confirmed receiving data over serial
port with an undocumented (but existing) "Recv x bytes" message. Next we
are explicitly waiting for an official "SEND OK".
2019-12-31 10:30:37 +02:00
Antti Kauppila
d5fdcfdab8
busy s... fix (ONME-4352)
...
oob handling added for OK in busy scenario
Fixed spellcheck error
trace added for ok
2019-12-12 09:36:34 +02:00
Antti Yli-Tokola
10687d6c3f
Make ESP8266 compatible with non rtos build
2019-12-04 09:23:18 +02:00
Martin Kojtal
4ed8603d64
Merge pull request #11541 from dmaziec1/recv_scanf_oob_fixed
...
esp8266 _oob_* : recv() brought back where it was needed
2019-09-30 13:59:53 +02:00
Anna Bridge
372a3f19c9
Merge pull request #11514 from dmaziec1/UART_deep_sleep_enable
...
ESP8266 unlocks deep sleep when disconnected
2019-09-27 16:50:22 +01:00
Dominika Maziec
e84e098bcb
esp8266 in _oob_* : recv() brought back where it was needed
2019-09-27 15:54:43 +02:00
Dominika Maziec
1aa3b5d9d0
UART in deep sleep mode when it is disconnected
2019-09-20 17:18:32 +02:00
Dominika Maziec
66bf8bc97b
ESP8266 Unified Mbed trace prints.
...
All logs now:
- start with a function name (it is not automatically logged by the logger)
- do not contain class name (this can be inferred from log preamble)
- message starts with a capital letter and ends with a full-stop
2019-09-13 16:54:31 +02:00
Dominika Maziec
9ddef624bc
Replaced in ESP8266::_oob_* recv() with scanf()
...
`ATCmdParser::recv()` should be used when we skim through data trying to look for something and `ATCmdParser::scanf()` is to be used when we know what we are supposed to get- as in `_oob_*` functions, except from `_oob_connection_status()`
2019-09-11 17:00:37 +02:00
Martin Kojtal
56a8227c54
Merge pull request #11304 from AnttiKauppila/esp8266_fix
...
RSSI getter fixed for ESP8266
2019-08-29 08:49:24 +02:00
Antti Kauppila
2bdf3bbf23
astyle fixes
2019-08-26 09:56:18 +03:00
Desmond Chen
77d403b20a
Enable json overriding ESP8266 default baud rate
2019-08-26 11:38:30 +08:00
Antti Kauppila
a074721d18
RSSI getter fixed for ESP8266
2019-08-23 12:28:04 +03:00
Antti Kauppila
84063bf222
Coverity issues fixed
2019-08-14 16:22:05 +03:00
Marcin Tomczyk
9ae4463ccc
Need to change ESP8266 driver's support AT firmware version. Only AT version 1.6 0r above support AT+CWCOUNTRY command. Command AT+CWLAP format is different for version 1.6 and above
2019-07-05 10:07:29 +02:00
Kevin Bracey
69c6cc341b
Networking: Fix some ARMC6 warnings
...
Some int-versus-long and signed-versus-unsigned format string
mismatches, and missing `class` keyword.
2019-04-17 16:03:44 +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
Cruz Monrreal
1c23c5b85b
Merge pull request #9927 from VeijoPesonen/esp8266_country_code_policy
...
ESP8266: Country code API
2019-03-27 00:25:29 -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
b5f3fcf49b
ESP8266: Wi-Fi scan results as OOB
2019-03-14 12:00:17 +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
c9eaa07236
ESP8266: astyle, remove from the .astyleignore-file
2019-03-04 09:38:20 +02:00
Cruz Monrreal
9d9a076f10
Merge pull request #9885 from VeijoPesonen/esp8266_conn_timeout_err2trace
...
ESP8266: graceful disconnect on network state timeout
2019-02-28 19:56:11 -06:00
Veijo Pesonen
7bb887fef4
ESP8266: in unknown network state driver tries to disconnect
2019-02-28 12:44:49 +02:00
Veijo Pesonen
688a4e42bc
ESP8266: recv() is able to handle device busy indication
2019-02-27 09:54:43 +02:00
Veijo Pesonen
cbbe2ff55e
ESP8266: retry reset attempt once in failure
2019-02-14 11:08:37 +02:00
Veijo Pesonen
706dd39569
ESP8266: protects setting UART HW flow control with a mutex
2019-02-14 10:41:04 +02:00
Veijo Pesonen
108ec44b66
ESP8266: fixes UART HW flow control enabling sequence
2019-02-14 10:41:04 +02:00
Veijo Pesonen
71e5321f0f
ESP8266: fixes network status refresh procedure
2019-02-14 10:41:04 +02:00