Skip to content

Instantly share code, notes, and snippets.

@TerryE
Created November 7, 2015 15:08
Show Gist options
  • Save TerryE/317c98913d05034c716b to your computer and use it in GitHub Desktop.
Save TerryE/317c98913d05034c716b to your computer and use it in GitHub Desktop.
List of Esp8266 SDK API changes 0.95 -> 1.4
(1.1) at_register_response_func:register a callback for user-define AT response.
(1.0) at_register_uart_rx_intr:set UART0 to be used by user or AT commands
(1.1) at_response:set AT response
(1.0) espconn_clear_opt: clear configuration of TCP connection
(1.1) espconn_dns_setserver : set default DNS server
(1.0) espconn_get_keepalive: get configuration of TCP keep-alive
(1.0) espconn_mdns_close: close mDNS 
(1.0) espconn_mdns_disable: disable mDNS 
(1.0) espconn_mdns_enable: endisable mDNS 
(1.0) espconn_mdns_get_hostname: set mDNS host name 
(1.0) espconn_mdns_get_servername: get mDNS server name 
(1.0) espconn_mdns_init: initialize mDNS 
(1.0) espconn_mdns_server_register: register mDNS server 
(1.0) espconn_mdns_server_unregister: unregister mDNS server 
(1.0) espconn_mdns_set_hostname: get mDNS host name 
(1.0) espconn_mdns_set_servername: set mDNS server name 
(1.0) espconn_secure_get_size:get SSL buffer size
(1.0) espconn_secure_set_size:set buffer size for SSL packet
(1.4) espconn_secure_cert_req_disable:disable certificates verification function when ESP8266 runs as SSL client.
(1.4) espconn_secure_cert_req_enable:enable certificates verification function when ESP8266 runs as SSL client.
(1.4) espconn_secure_set_default_certificate:set the certificate when ESP8266 runs as SSL server.
(1.4) espconn_secure_set_default_private_key:set the encryption key when ESP8266 runs as SSL server. 
(1.4) espconn_sendto:send UDP data. 
(1.0) espconn_set_keepalive: set configuration of TCP keep-alive to detect if TCP connection broke
(1.2) esp_now_add_peer: add an ESP-NOW peer
(1.2) esp_now_deinit: deinit ESP-NOW function
(1.2) esp_now_del_peer: delete an ESP-NOW peer
(1.2) esp_now_get_peer_key: get ESP-NOW key of a device
(1.2) esp_now_get_peer_role: get ESP-NOW role about another device 
(1.2) esp_now_get_self_role: get ESP-NOW role of device itself
(1.2) esp_now_init: init ESP-NOW function
(1.2) esp_now_register_recv_cb: register ESP-NOW receive callback
(1.3) esp_now_register_send_cb: register ESP-NOW send callback
(1.2) esp_now_send: send ESP-NOW packet
(1.3) esp_now_set_kok: set the secure key to encrypt ESP-NOW communication key
(1.2) esp_now_set_peer_key: set ESP-NOW key of a device 
(1.2) esp_now_set_peer_role: set ESP-NOW role about another device 
(1.2) esp_now_set_self_role: set ESP-NOW role of device itself
(1.2) esp_now_unregister_recv_cb: unregister ESP-NOW receive callback
(1.3) esp_now_unregister_send_cb: unregister ESP-NOW send callback
(1.1) get_pwm_version:get version information of PWM driver
(1.1) (DELETED) pwm_get_freq:get PWM frequency
(1.1) pwm_get_period:get PWM period
(1.1) (DELETED) pwm_set_freq:set PWM frequency
(1.1) pwm_set_period:set PWM period
(1.4) smartconfig_set_type: set the protocol type of SmartConfig.  
(1.0) sntp_get_current_timestamp: get current timestamp from Jan 01, 1970, 00:00 (GMT) 
(1.0) sntp_get_real_time: char,get real time (GTM + 8 time zone) 
(1.0) sntp_getserver: get SNTP server IP 
(1.0) sntp_getservername: get domain name of SNTP server set by sntp_setservername 
(1.2) sntp_get_timezone: get SNTP timezone 
(1.0) sntp_init: initialize SNTP 
(1.0) sntp_setservername: set SNTP server by domain name 
(1.0) sntp_setserver: set SNTP server by IP 
(1.1) sntp_set_timezone: set SNTP time zone.
(1.0) sntp_stop: stop SNTP 
(1.1) system_get_flash_size_map: get flash size and flash map
(1.1) system_get_rst_info:get information about current startup,it is a normal startup or watch dog reset. struct rst_info is revised from parameter “flag” to “reason” which is introduced in document “2C_ESP8266__Programming Guide” 
(1.1) system_param_load:read data which saved into flash with backup protection 
(1.1) system_param_save_with_protect:write data into flash with backup protection
(1.1) system_phy_set_max_tpw : set maximum RF TX power
(1.1) system_phy_set_rfoption : set RF option
(1.1) system_phy_set_tpw_via_vdd33 :set RF TX power according to VDD33 
(1.4) system_show_malloc : for checking memory leak, to print the memory usage. 
(1.2) system_soft_wdt_restart: restart software watchdog
(1.2) system_soft_wdt_stop: stop software watchdog
(1.3) system_soft_wdt_feed : feed software watchdog
(1.1) system_uart_de_swap : disable UART0 swap
(1.0) system_update_cpu_freq: change CPU frequency;
(1.1) (UPDATED) pwm_init,add parameter to set PWM channel and GPIO pin 
(1.4) wifi_fpm_close:disable force sleep function.  
(1.4) wifi_fpm_do_sleep:force ESP8266 enter sleep mode.
(1.4) wifi_fpm_do_wakeup:wake ESP8266 up from force sleep.
(1.4) wifi_fpm_get_sleep_type:get sleep type of force sleep function. 
(1.4) wifi_fpm_open:enable force sleep function. 
(1.4) wifi_fpm_set_sleep_type:set sleep type of force sleep function. 
(1.4) wifi_get_user_fixed_rate:check the fixed rate and mask of ESP8266
(1.4) wifi_get_user_limit_rate_mask:get the interfaces of ESP8266 whose rate of sending packets is limited by wifi_set_user_rate_limit. 
(1.0) wifi_promiscuous_set_mac: set a mac address filter during sniffer;
(1.4) wifi_register_rfid_locp_recv_cb:register a callback of receiving WDS packets.  
(1.4) wifi_register_send_pkt_freedom_cb:register a callback for sending user-define 802.11 packets. 
(1.4) wifi_rfid_locp_recv_close:disable RFID LOCP.  
(1.4) wifi_rfid_locp_recv_open:enable RFID LOCP to receive WDS packets.  
(1.4) wifi_send_pkt_freedom:send user-define 802.11 packet. 
(1.0) wifi_set_broadcast_if : set which interface will UDP broadcast send from;
(1.0) wifi_set_event_handler_cb: set event handler of ESP8266 softAP or station status change. 
(1.4) wifi_set_user_fixed_rate:set the fixed rate and mask of sending data from ESP8266 
(1.4) wifi_set_user_limit_rate_mask:set the interfaces of ESP8266 whose rate of sending packets is limited by wifi_set_user_rate_limit.  
(1.4) wifi_set_user_rate_limit:limit the rate of sending data from ESP8266. 
(1.4) wifi_set_user_sup_rate:set the rate range supported by ESP8266 to limit the rate of sending packets from other devices. 
(1.2) wifi_set_wps_cb: set WPS callback
(1.0) wifi_softap_dhcps_set_offer_option: enable/disable get router information from ESP8266 softAP, default to be enable. 
(1.1) wifi_softap_get_station_num :get number count of stations connected to ESP8266 soft-AP
(1.3) wifi_softap_get_dhcps_lease:get IP range of ESP8266 softAP DHCP server 
(1.4) wifi_softap_get_dhcps_lease_time:check ESP8266 softAP DHCP server lease time. 
(1.4) wifi_softap_reset_dhcps_lease_time:reset ESP8266 softAP DHCP server lease time which is 120 minutes by default.
(1.4) wifi_softap_set_dhcps_lease_time:set ESP8266 softAP DHCP server lease time. 
(1.4) wifi_station_dhcpc_set_maxtry:set the maximum number that ESP8266 station DHCP client will try to reconnect to the AP. 
(1.1) wifi_station_get_rssi:get rssi of AP which ESP8266 station connected to  
(1.0) wifi_station_set_reconnect_policy: enable/disable reconnect when ESP8266 disconnect from router,default to be enable reconnect. 
(1.4) wifi_unregister_rfid_locp_recv_cb:unregister the callback of receiving WDS packets. 
(1.4) wifi_unregister_send_pkt_freedom_cb:unregister the callback for sending user-define 802.11 packets.  
(1.2) wifi_wps_disable: disable WPS function
(1.2) wifi_wps_enable : enable WPS function
(1.2) wifi_wps_start: start WPS communication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment