mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Update to SDK 1.3.0
This commit is contained in:
parent
cd69be7f8f
commit
7bfd425754
@ -666,7 +666,7 @@ bool ESP8266WiFiClass::hostname(String aHostname) {
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
||||
void wifi_wps_status_cb(WPS_CB_STATUS_t status)
|
||||
void wifi_wps_status_cb(wps_cb_status status)
|
||||
{
|
||||
DEBUGV("wps cb status: %d\r\n", status);
|
||||
switch (status) {
|
||||
@ -682,6 +682,9 @@ void wifi_wps_status_cb(WPS_CB_STATUS_t status)
|
||||
case WPS_CB_ST_TIMEOUT:
|
||||
DEBUGV("wps TIMEOUT\n");
|
||||
break;
|
||||
case WPS_CB_ST_WEP:
|
||||
DEBUGV("wps WEP\n");
|
||||
break;
|
||||
}
|
||||
// todo user function to get status
|
||||
|
||||
@ -715,7 +718,7 @@ bool ESP8266WiFiClass::beginWPSConfig(void) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!wifi_set_wps_cb(&wifi_wps_status_cb)) {
|
||||
if(!wifi_set_wps_cb((wps_st_cb_t) &wifi_wps_status_cb)) {
|
||||
DEBUGV("wps cb faild\n");
|
||||
return false;
|
||||
}
|
||||
|
@ -1,3 +1,49 @@
|
||||
esp_iot_sdk_v1.3.0_15_08_08 Release Note
|
||||
----------------------------------------
|
||||
|
||||
Resolved Issues(Bugs below are eligible for Bug Bounty Program):
|
||||
1.Device can't connect to router after it gets ssid and password when using ESPTOUCH with router's ssid hidden. [冯智]
|
||||
2.Format string of os_random can't be supported by atoi. [杨朝位]
|
||||
3.Optimized os_printf seems to have an issue on 4 bytes aligned and other valuable suggestions. [Andrey Filimonov]
|
||||
4.SmartConfig can’t get IP address after connected to router. [孙大明]
|
||||
|
||||
Optimization:
|
||||
1.Memory optimization to save 12KBytes.
|
||||
2.Optimize RF calibration to short the booting time,more details in documentation "2A-ESP8266__IOT_SDK_User_Manual" chapter "Appendix".
|
||||
3.Optimize Wi-Fi function to solve issue that ESP8266 may fail to connect to a special router.
|
||||
4.Optimize software timer to solve the a connecting problem.Please do not call "os_delay_us" or "while" or "for" to occupy CPU more than 10 ms in timer callback.
|
||||
5.Optimize system_get_rst_info to obtain more accurate information about the start-up.
|
||||
6.Optimize function of Wi-Fi scanning to be more reliable.
|
||||
7.Optimize function of changing Wi-Fi mode to be more reliable.
|
||||
8.Optimize WPS to improve connectivity.And WPS does not support WEP, it will return status "WPS_CB_ST_WEP".
|
||||
9.Optimize Wi-Fi function to solve softAP multiple stations DHCP issue.
|
||||
10.Optimize TCP in LAST_ACK status.
|
||||
11.Optimize TLS to support SHA256, SHA384, SHA512.
|
||||
12.Memory optimization during TLS hand-shaking.
|
||||
13.Optimize OTA funtion to download big chunk of data.
|
||||
14.Add CRC32 in OTA function.Folder "tools" in esp_iot_sdk has to be updated, otherwise OTA will fail.
|
||||
15.Optimize mDNS to support both softAP and station interfaces.
|
||||
16.Optimize ESP-NOW, more details in "Add APIs"
|
||||
17.Update SmartConfig to version 2.4.7
|
||||
18.Remove "-O2" from makefile.
|
||||
19.Optimize header files to improve compatibility, will not affect compilation.
|
||||
|
||||
Add APIs:
|
||||
1.system_soft_wdt_feed : feed software watchdog
|
||||
2.wifi_softap_get_dhcps_lease:get IP range of ESP8266 softAP DHCP server
|
||||
3.ESP-NOW APIs
|
||||
esp_now_set_kok: set the secure key to encrypt ESP-NOW communication key
|
||||
esp_now_register_send_cb: register ESP-NOW send callback
|
||||
esp_now_unregister_send_cb: unregister ESP-NOW send callback
|
||||
|
||||
AT_v0.40 Release Note:
|
||||
Note: For AT firmware to support FOTA, flash size need to be 1024KB or more than that.
|
||||
|
||||
1.Add parameter <max conn> in command "AT+CWSAP" to set the maximum number of connections allowed.
|
||||
|
||||
|
||||
|
||||
|
||||
esp_iot_sdk_v1.2.0_15_07_13_p4 Release Note
|
||||
-------------------------------------------
|
||||
|
||||
|
@ -24,7 +24,7 @@ typedef void (* espconn_reconnect_callback)(void *arg, sint8 err);
|
||||
#define ESPCONN_ISCONN -15 /* Already connected. */
|
||||
|
||||
#define ESPCONN_HANDSHAKE -28 /* ssl handshake failed */
|
||||
#define ESPCONN_PROTO_MSG -61 /* ssl application invalid */
|
||||
#define ESPCONN_SSL_INVALID_DATA -61 /* ssl application invalid */
|
||||
|
||||
/** Protocol family and type of the espconn */
|
||||
enum espconn_type {
|
||||
@ -267,6 +267,17 @@ sint8 espconn_regist_sentcb(struct espconn *espconn, espconn_sent_callback sent_
|
||||
|
||||
sint8 espconn_regist_write_finish(struct espconn *espconn, espconn_connect_callback write_finish_fn);
|
||||
|
||||
/******************************************************************************
|
||||
* FunctionName : espconn_send
|
||||
* Description : sent data for client or server
|
||||
* Parameters : espconn -- espconn to set for client or server
|
||||
* psent -- data to send
|
||||
* length -- length of data to send
|
||||
* Returns : none
|
||||
*******************************************************************************/
|
||||
|
||||
sint8 espconn_send(struct espconn *espconn, uint8 *psent, uint16 length);
|
||||
|
||||
/******************************************************************************
|
||||
* FunctionName : espconn_sent
|
||||
* Description : sent data for client or server
|
||||
@ -426,6 +437,17 @@ sint8 espconn_secure_connect(struct espconn *espconn);
|
||||
|
||||
sint8 espconn_secure_disconnect(struct espconn *espconn);
|
||||
|
||||
/******************************************************************************
|
||||
* FunctionName : espconn_secure_send
|
||||
* Description : sent data for client or server
|
||||
* Parameters : espconn -- espconn to set for client or server
|
||||
* psent -- data to send
|
||||
* length -- length of data to send
|
||||
* Returns : none
|
||||
*******************************************************************************/
|
||||
|
||||
sint8 espconn_secure_send(struct espconn *espconn, uint8 *psent, uint16 length);
|
||||
|
||||
/******************************************************************************
|
||||
* FunctionName : espconn_encry_sent
|
||||
* Description : sent data for client or server
|
||||
|
@ -13,12 +13,16 @@ enum esp_now_role {
|
||||
ESP_NOW_ROLE_MAX,
|
||||
};
|
||||
|
||||
typedef void (*esp_now_cb_t)(u8 *mac_addr, u8 *data, u8 len);
|
||||
typedef void (*esp_now_recv_cb_t)(u8 *mac_addr, u8 *data, u8 len);
|
||||
typedef void (*esp_now_send_cb_t)(u8 *mac_addr, u8 status);
|
||||
|
||||
int esp_now_init(void);
|
||||
int esp_now_deinit(void);
|
||||
|
||||
int esp_now_register_recv_cb(esp_now_cb_t cb);
|
||||
int esp_now_register_send_cb(esp_now_send_cb_t cb);
|
||||
int esp_now_unregister_send_cb(void);
|
||||
|
||||
int esp_now_register_recv_cb(esp_now_recv_cb_t cb);
|
||||
int esp_now_unregister_recv_cb(void);
|
||||
|
||||
int esp_now_send(u8 *da, u8 *data, int len);
|
||||
@ -44,4 +48,6 @@ int esp_now_is_peer_exist(u8 *mac_addr);
|
||||
|
||||
int esp_now_get_cnt_info(u8 *all_cnt, u8 *encrypt_cnt);
|
||||
|
||||
int esp_now_set_kok(u8 *key, u8 len);
|
||||
|
||||
#endif
|
||||
|
@ -23,7 +23,7 @@ typedef enum {
|
||||
} GPIO_INT_TYPE;
|
||||
|
||||
#define GPIO_OUTPUT_SET(gpio_no, bit_value) \
|
||||
gpio_output_set(bit_value<<gpio_no, ((~bit_value)&0x01)<<gpio_no, 1<<gpio_no,0)
|
||||
gpio_output_set((bit_value)<<gpio_no, ((~(bit_value))&0x01)<<gpio_no, 1<<gpio_no,0)
|
||||
#define GPIO_DIS_OUTPUT(gpio_no) gpio_output_set(0,0,0, 1<<gpio_no)
|
||||
#define GPIO_INPUT_GET(gpio_no) ((gpio_input_get()>>gpio_no)&BIT0)
|
||||
|
||||
|
0
tools/sdk/include/json/json.h
Executable file → Normal file
0
tools/sdk/include/json/json.h
Executable file → Normal file
0
tools/sdk/include/json/jsonparse.h
Executable file → Normal file
0
tools/sdk/include/json/jsonparse.h
Executable file → Normal file
0
tools/sdk/include/json/jsontree.h
Executable file → Normal file
0
tools/sdk/include/json/jsontree.h
Executable file → Normal file
5
tools/sdk/include/upgrade.h
Executable file → Normal file
5
tools/sdk/include/upgrade.h
Executable file → Normal file
@ -2,6 +2,7 @@
|
||||
#define __UPGRADE_H__
|
||||
|
||||
#define SPI_FLASH_SEC_SIZE 4096
|
||||
#define LIMIT_ERASE_SIZE 0x10000
|
||||
|
||||
#define USER_BIN1 0x00
|
||||
#define USER_BIN2 0x01
|
||||
@ -37,14 +38,12 @@ struct upgrade_server_info {
|
||||
#define UPGRADE_FLAG_START 0x01
|
||||
#define UPGRADE_FLAG_FINISH 0x02
|
||||
|
||||
//bool system_upgrade_start(struct upgrade_server_info *server);
|
||||
bool system_upgrade_start_ssl(struct upgrade_server_info *server);
|
||||
void system_upgrade_init();
|
||||
void system_upgrade_deinit();
|
||||
bool system_upgrade(uint8 *data, uint16 len);
|
||||
|
||||
#ifdef UPGRADE_SSL_ENABLE
|
||||
bool system_upgrade_start_ssl(struct upgrade_server_info *server);
|
||||
bool system_upgrade_start_ssl(struct upgrade_server_info *server); // not supported now
|
||||
#else
|
||||
bool system_upgrade_start(struct upgrade_server_info *server);
|
||||
#endif
|
||||
|
@ -28,10 +28,11 @@ enum rst_reason {
|
||||
REASON_EXCEPTION_RST = 2,
|
||||
REASON_SOFT_WDT_RST = 3,
|
||||
REASON_SOFT_RESTART = 4,
|
||||
REASON_DEEP_SLEEP_AWAKE = 5
|
||||
REASON_DEEP_SLEEP_AWAKE = 5,
|
||||
REASON_EXT_SYS_RST = 6
|
||||
};
|
||||
|
||||
struct rst_info {
|
||||
struct rst_info{
|
||||
uint32 reason;
|
||||
uint32 exccause;
|
||||
uint32 epc1;
|
||||
@ -137,6 +138,7 @@ bool system_param_load(uint16 start_sec, uint16 offset, void *param, uint16 len)
|
||||
|
||||
void system_soft_wdt_stop(void);
|
||||
void system_soft_wdt_restart(void);
|
||||
void system_soft_wdt_feed(void);
|
||||
|
||||
#define NULL_MODE 0x00
|
||||
#define STATION_MODE 0x01
|
||||
@ -283,6 +285,7 @@ void wifi_softap_free_station_info(void);
|
||||
bool wifi_softap_dhcps_start(void);
|
||||
bool wifi_softap_dhcps_stop(void);
|
||||
bool wifi_softap_set_dhcps_lease(struct dhcps_lease *please);
|
||||
bool wifi_softap_get_dhcps_lease(struct dhcps_lease *please);
|
||||
enum dhcp_status wifi_softap_dhcps_status(void);
|
||||
bool wifi_softap_set_dhcps_offer_option(uint8 level, void* optarg);
|
||||
|
||||
@ -430,17 +433,18 @@ typedef enum wps_type {
|
||||
WPS_TYPE_MAX
|
||||
} WPS_TYPE_t;
|
||||
|
||||
typedef enum wps_cb_status {
|
||||
enum wps_cb_status {
|
||||
WPS_CB_ST_SUCCESS = 0,
|
||||
WPS_CB_ST_FAILED,
|
||||
WPS_CB_ST_TIMEOUT
|
||||
} WPS_CB_STATUS_t;
|
||||
WPS_CB_ST_TIMEOUT,
|
||||
WPS_CB_ST_WEP,
|
||||
};
|
||||
|
||||
bool wifi_wps_enable(WPS_TYPE_t wps_type);
|
||||
bool wifi_wps_disable(void);
|
||||
bool wifi_wps_start(void);
|
||||
|
||||
typedef void (*wps_st_cb_t)(WPS_CB_STATUS_t status);
|
||||
typedef void (*wps_st_cb_t)(int status);
|
||||
bool wifi_set_wps_cb(wps_st_cb_t cb);
|
||||
|
||||
#endif
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
1.2.0_15_07_13_p4
|
||||
1.3.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user