1343 Commits

Author SHA1 Message Date
8d86f3c36b fix(tcp_transport): fix SSL read blocked when the connecttion is closed 2019-06-13 16:56:29 +08:00
a80d15f768 Merge branch 'feature/modify_std_io_header_file_declare' into 'master'
esp-lMidify stand I/O control APIs declare

See merge request sdk/ESP8266_RTOS_SDK!982
2019-06-13 16:47:05 +08:00
20bafafe77 Merge branch 'feature/spi_ram_fifo_add_timetick' into 'master'
feature(spi_ram_fifo): add timetick

See merge request sdk/ESP8266_RTOS_SDK!979
2019-06-13 16:36:00 +08:00
1b2d3b9cf0 feat(lwip): Midify stand I/O control APIs declare 2019-06-13 16:27:25 +08:00
a227a22a36 Merge branch 'bugfix/fix_i2s_dma_error' into 'master'
bugfix(i2s): fix i2s dma error

See merge request sdk/ESP8266_RTOS_SDK!960
2019-06-12 19:13:19 +08:00
483a5a475c bugfix(i2s): fix i2s dma error 2019-06-12 11:14:50 +08:00
42c06647ba feature(spi_ram_fifo): add timetick 2019-06-12 11:06:26 +08:00
135c2977a6 Merge branch 'feature/add_set_tx_power_via_vdd33_function' into 'master'
feat(esp8266): add set tx power via vdd33 function

See merge request sdk/ESP8266_RTOS_SDK!950
2019-06-12 10:59:50 +08:00
2084e8ed19 feat(esp8266): format phy_init.c 2019-06-12 10:38:33 +08:00
d04ce110f9 feat(esp8266): add set tx power via vdd33 function 2019-06-12 10:38:33 +08:00
c94662d90e Merge branch 'feature/autoip_bind_trigger_callback' into 'master'
lAutoIP trigger callback so that application can know IP changes

See merge request sdk/ESP8266_RTOS_SDK!972
2019-06-12 08:53:25 +08:00
4c4bab2746 Merge branch 'bugfix/fix_aws_read_timeout_error' into 'master'
aws: fix AWS read timeout error

See merge request sdk/ESP8266_RTOS_SDK!967
2019-06-10 19:13:16 +08:00
8227962033 feat(lwip): AutoIP trigger callback so that application can know IP changes 2019-06-10 14:32:51 +08:00
2f74b409f7 fix(mqtt): Fix a bug of MQTT when disable WS or WSS 2019-06-10 09:26:04 +08:00
fff950983e Merge branch 'feature/factory_test' into 'master'
factory-test: add factory test code and document

See merge request sdk/ESP8266_RTOS_SDK!890
2019-06-04 16:05:33 +08:00
9c19b1eedb feat(factory_test): add factory test and document 2019-06-04 15:38:35 +08:00
02cc56af50 fix(aws): fix AWS read timeout error
The behave that set socket timeout is error, it will lead to a socket I/O error to mbedTLS.
2019-06-03 19:47:25 +08:00
e32f60008a Merge branch 'feature/add_old_sdk_param' into 'master'
compatibility_upgrade: add function to get old SDK's target ap SSID and passowrd

See merge request sdk/ESP8266_RTOS_SDK!959
2019-05-31 15:56:58 +08:00
639c64a540 feat(compatibility_upgrade): add function to get old SDK's target ap SSID and passowrd
Add error warning to check the wrong parition table.
2019-05-31 15:51:20 +08:00
ed62c28579 Merge branch 'bugfix/fix_the_comment_of_sniffer_promiscuous_parameter' into 'master'
bugfix(sc): modify the comment of wifi_pkt_rx_ctrl_t in esp_wifi_types.h

See merge request sdk/ESP8266_RTOS_SDK!948
2019-05-31 15:21:10 +08:00
c9e233280c Merge branch 'feature/set_netif_hostname_according_to_rfc952' into 'master'
feat(lwip): set netif hostname according to rfc952

See merge request sdk/ESP8266_RTOS_SDK!947
2019-05-31 15:19:53 +08:00
1f771ddf47 Merge branch 'bugfix/fix_cmake_requires' into 'master'
cmake: fix cmake requires

See merge request sdk/ESP8266_RTOS_SDK!966
2019-05-31 15:10:01 +08:00
d6acfca78c fix(cmake): fix cmake requires 2019-05-31 15:03:16 +08:00
5a99688e5e Merge branch 'feature/check_data_bits_overflow' into 'master'
cjson: check if 32-bit type data is overflow

See merge request sdk/ESP8266_RTOS_SDK!945
2019-05-31 10:01:59 +08:00
1bed835d22 Merge branch 'feature/transfer_ACK_type_to_sc_callback' into 'master'
feat(sc): transfer smartconfig ACK type to sc_callback

See merge request sdk/ESP8266_RTOS_SDK!944
2019-05-31 09:58:27 +08:00
5307b1f6cd Merge branch 'feature/ssc_flush_print_buf' into 'master'
esp8266: ssc flushes print buffer after printf

See merge request sdk/ESP8266_RTOS_SDK!961
2019-05-30 15:00:47 +08:00
51361b06b8 feat(esp8266): disable UART swap before restart 2019-05-30 14:00:22 +08:00
934dd5afcf feat(esp8266): ssc flushes print buffer after printf
Commit ID: a832c52c
2019-05-29 19:37:41 +08:00
2a57642874 feat(lwip): add reserved DNS server to avoid DHCP changing all DNS server address 2019-05-28 14:57:04 +08:00
d1fc3d977f Merge branch 'feature/remove_unnecessary_macro_define' into 'master'
app_update: remove unnecessary macro define

See merge request sdk/ESP8266_RTOS_SDK!956
2019-05-27 19:29:05 +08:00
e3f66b1567 feat(wpa_supplicant): disable LTM fast when enable wolfSSL 2019-05-27 19:23:06 +08:00
c340f7d1ec Merge branch 'feature/sync_esp_tls' into 'master'
esp_tls: sync code from esp-idf and modify for esp8266

See merge request sdk/ESP8266_RTOS_SDK!949
2019-05-27 19:03:29 +08:00
a09da28247 feat(app_update): Remove unnecessary macro define 2019-05-27 13:30:31 +08:00
e5e1afecf8 fix(esp8266): Fix pp_post reenter 2019-05-24 10:49:29 +08:00
8f258d31a5 fix(lib): fix crash when phrase wrong beacon 2019-05-24 10:41:51 +08:00
279d3cd9b0 feat(esp-tls): Modify for ESP8266
1. Add wolfSSL library in esp_tls component
2. Added wolfssl support to http-client & ota.
3. Client, OTA examples fixed. Bug fixes in esp-tls wolfssl support.
4. Fix a bug of esp_tls when work on no-block mode
5. Add macro to disable ipv6 configuration
6. Modify "read" and "write" of esp_tls structure to pass compiling
2019-05-23 17:58:57 +08:00
e3c6494361 feat(esp-tls): Sync code from esp-idf
1. Add support to add CN from config and validate PEM buffers
2. Fix incorrect closing of fd 0 on connection failure
3. Add esp_tls_init_global_ca_store function to esp-tls, called from esp_tls_set_global_ca_store. Signed-off-by: Chirag Atal <chirag.Atal@espressif.Com>
4. Add checks to for CONFIG_MBEDTLS_SSL_ALPN
5. Mqtt: ssl mutual authentication example added per PR from github, corrected cmake build, updated per idf style
2019-05-23 17:50:34 +08:00
812fc520cd lwip: fix reenter lwip_close 2019-05-23 17:10:44 +08:00
9f400bbc81 Merge branch 'feature/add_ota_init_bin' into 'master'
app_update: add OTA init bin

See merge request sdk/ESP8266_RTOS_SDK!952
2019-05-23 14:10:27 +08:00
345a4f60d1 feat(app_update): add OTA init bin 2019-05-23 14:06:02 +08:00
0bffba3b61 Merge branch 'feature/add_time_head_to_lwipopt_h' into 'master'
Add newlib <time.h> declare to "lwipopts.h"

See merge request sdk/ESP8266_RTOS_SDK!953
2019-05-23 14:00:46 +08:00
e2fe03064b feat(lwip): add newlib <time.h> declare to "lwipopts.h" 2019-05-23 11:38:04 +08:00
a06729a33b feat(ssl): remove AX-TLS
Also open source, we recommend that customers use mbedTLS.
2019-05-23 11:33:35 +08:00
8ccf4435cd fix the comment of wifi_pkt_rx_ctrl_t in esp_wifi_types.h 2019-05-20 20:44:40 +08:00
76fc05e6f8 feat(lwip): set netif hostname according to rfc952 2019-05-20 20:27:51 +08:00
9f49f9f660 feat(esp8266): Add interrupt overhead time test 2019-05-20 17:56:08 +08:00
7affcfc02d feat(cjson): Check if 32-bit type data is overflow 2019-05-20 14:04:15 +08:00
ca53760dec feat(sc): transfer smartconfig ACK type to sc_callback 2019-05-17 20:42:42 +08:00
9a72ce0903 feat(mdns): Sync code from esp-idf
Commit ID: 2f8508c7

1. Fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network. Issue: MDNS server initially sends probing packets to resolve naming confilicts with already registered service instances. In case of a conflict, instance name is altered and probing restarts. Original instance however wasnnot removed from the structure and upon service removal only one entry was removed and a dangling service might have been kept in the structure to bring about a crash. Resolution: Keep only one instance of a service in the probing structure

2. Enable pcbs before starting service thread to avoid updating pcb's internal variables from concurent tasks. Possible race condition: user task runs mdns_init, which enables pcbs while mdns-task already created could execute enable/disable of the same pcbs if an appropriate system event received

3. Fix possible deadlock on mdns deinit calling mdns_free(). Mnds_free() initiates stop and delete timer tasks, which after locking the mutex could lead to a dead lock in case timer task executed before deleting the task, as it would wait indefinitelly for unlocking the mutex. This condition is fixed by calling _mdns_stop_timer without locking the mutex, because there's no need to protect any data when stopping and deleting the timer task

4. Fix race condition in updating packet data from user task when failed to allocate or queue a new service. Issue: mdns_service_add API allocates and queues an action to be processed in mdns task context; when allocation or queueing fails, allocated structure needs to be freed. Function _mdns_free_service did not only fee all the structures, but also updates packet data. Resolution: Moved removal of packet data outside of _mdns_free_service function

5. Fix possible crash when packet scheduled to transmit contained service which might have been already removed. Packets scheduled to transmit are pushed to action queue and removed from tx_queue_head structure, which is searched for all remaining services and while service is removed, then service questions/asnwers are also removed from this structure. This update fixes possible crash when packet is pushed to action queue, and when service is removed, its answers are removed from tx_queue_head, but not from action queue. This could lead to a crash when the packet is poped from action queue containing questions/answers to already removed (freed) service

6. Use binary semaphore instead of mutex when searching. Mdns_search_once_t::lock is used to synchronize tasks (taken by one task and given by the other) so it should not be a mutex. Convert to semaphore, and rename to indicate its purpose

7. Fix memory leak in pbuf if tcpipadapter failed to get netif

8. Fix malfuctional query_txt. When running a query for a single txt, result entries were not created and attached to result structure. This issue was introduced when fixing memory leak in txt structure, which worked correctly for PTR queries, but caused trouble for TXT query

9. Fix possible crash when mdns_free called while action queue not empty

10. Fix memory leak when query for service receives multiple ptr entries for one instance

11. Fix crash after init if no memory for task. Mdns init first starts timer task, then starts service task. If service task failed to be created, timer task needs to be stopped too

12. Fixed crash on free undefined ptr after skipped strdup. Shortcircuit evaluation may cause skip of _mdns_strdup_check of any further question field, which after clear_rx_packet freed undefined memory

13. Fix networking running udp_sendif from lwip thread

14. Check all mallocs for failure and add default hook to log error with free heap. Solves crash about _mdns_result_txt_create when stress test

15. Fixed static memory leak

16. Resolve memory leak when txt record received multiple times

17. Skip sending search when finished, not properly locked timer task

18. Sending search packets also in probing and announcing state. Mdns queries did not work properly when send imeadiately after set_hostname, which cuased reinit of pcb and therefore restarted probing, so search packets were blocked until probing finished
2019-05-17 16:29:24 +08:00
43d4d27c11 Merge branch 'bugfix/pwm_channel_num_type_error' into 'master'
bugfix(pwm): fix pwm channel num type error

See merge request sdk/ESP8266_RTOS_SDK!941
2019-05-16 17:09:56 +08:00