ESP8266EX 编程手册
[ [
] INTERNAL ] PUBLIC
ESP8266EX 编程手册
版本信息
Wi-Fi联盟成员标志归Wi-Fi联盟所有。
文中提到的所有商标名称、商标和注册商标均属其各自所有者的财产,特此声明。 版权归© 2014 乐鑫信息技术有限公司所有。保留所有权利。
ESP8266EX 编程手册
目录
版本信息........................................................................................................................ 2 目录................................................................................................................................ 4 1. 前言.................................................................................................... 9 2. 软件框架.......................................................................................... 10 3. SDK提供的API接口 .11 3.1. 定时器接口11 3.1.1. 11 3.1.2. os_timer_disarm .3.1.3. os_timer_setfn .2 3.2. 底层用户接口12 3.2.1. system_restore .12 3.2.2. 12 3.2.3. system_timer_reinit .13 3.2.4. system_init_done_cb .13 3.2.5. 14 3.2.6. 14 3.2.7. .15 3.2.8. 15 3.2.9. 16 3.2.10. 16 3.2.11. 16 3.2.12. 18 3.2.13. .18 3.2.14. 19 19 19 20 21 21 3.3. SPI Flash 相关接口 ......................................................................... 22 spi_flash_get_id ............................................................................... 22 spi_flash_erase_sector .................................................................... 22 3.3.3. spi_flash_write ................................................................................. 22 3.3.4. spi_flash_read .................................................................................. 23 3.4. WIFI相关接口 ................................................................................. 24 3.4.1. wifi_get_opmode ............................................................................. 24 3.4.2. wifi_set_opmode ............................................................................. 24 3.4.3. wifi_station_get_config ................................................................... 25 3.4.4. wifi_station_set_config .................................................................... 25 3.4.5. wifi_station_connect ....................................................................... 25
ESP8266EX 编程手册
3.4.6. wifi_station_disconnect ................................................................... 26 3.4.7. wifi_station_get_connect_status..................................................... 26 3.4.8. wifi_station_scan ............................................................................. 27 3.4.9. scan_done_cb_t ............................................................................... 28 3.4.10. wifi_station_ap_number_set ........................................................... 28 3.4.11. wifi_station_get_ap_info ................................................................. 29 3.4.12. wifi_station_ap_change ................................................................... 29 3.4.13. wifi_station_get_current_ap_id ...................................................... 29 3.4.14. wifi_station_get_auto_connect .30 3.4.15. 30 3.4.16. 31 3.4.17. wifi_station_dhcpc_stop . 3.4.18. 31 3.4.19. 32 3.4.20. wifi_softap_set_config .32 3.4.21. wifi_softap_get_station_info .32 3.4.22. 33 3.4.23. 34 3.4.24. wifi_softap_dhcps_stop .34 3.4.25. 34 3.4.26. 35 3.4.27. 35 3.4.28. 36 3.4.29. 36 3.4.30. 37 3.4.31. 38 3.4.32. 38 3.4.33. ......................................................................... 39 ......................................................................... 39 40 wifi_status_led_uninstall ................................................................. 40 .................................................................................. 41 system_upgrade_userbin_check ..................................................... 41 system_upgrade_flag_set ................................................................ 41 system_upgrade_flag_check............................................................ 42 system_upgrade_start ..................................................................... 42 3.5.5. system_upgrade_reboot .................................................................. 42 3.6. sniffer 相关接口 ............................................................................. 43 3.6.1. wifi_promiscuous_enable ................................................................ 43 3.6.2. wifi_set_promiscuous_rx_cb ........................................................... 43 3.6.3. wifi_get_channel .............................................................................. 43 3.6.4. wifi_set_channel .............................................................................. 44 3.7. smart config接口 ............................................................................ 44
ESP8266EX 编程手册
3.7.1. smartconfig_start ............................................................................. 44 3.7.2. smartconfig_stop ............................................................................. 45 3.7.3. get_smartconfig_status ................................................................... 46 3.8. 网络连接相关接口.......................................................................... 46 3.8.1. 通用接口 ......................................................................................... 46
3.8.1.1. espconn_delete ...................................................................... 46 3.8.1.2. espconn_gethostbyname ...................................................... 47 3.8.1.3. espconn_port .......................................................................... 48 3.8.1.4. espconn_regist_sentcb48 3.8.1.5. espconn_regist_recvcb49 3.8.1.6 …… 此处隐藏:10842字,全部文档内容请下载后查看。喜欢就下载吧 ……