Contents
1 Introduction ..........................................................................................................................................................3
Figure 1 - http_serv Project Structure ..................................................................................................................3
3 BGScript Files ........................................................................................................................................................5
3.1
Overview .......................................................................................................................................................5
3.2
api.bgs ...........................................................................................................................................................5
Figure 3 - Resource URL's .....................................................................................................................................5
Figure 5 - api_handle_ap_settings_request() ......................................................................................................6
Figure 6 - api_handle_ap_settings_request() cont. .............................................................................................6
Figure 7 - ap_init_mode .......................................................................................................................................7
Figure 8 - ap_start_mode() ...................................................................................................................................7
Figure 9 - ap_start_mode() cont. ..........................................................................................................................8
Figure 10 - ap_start_mode() cont.........................................................................................................................9
Figure 11 - sme_ap_mode_started() ....................................................................................................................9
Figure 12 - https paths ..........................................................................................................................................9
Figure 13 - sta_init_mode() ............................................................................................................................... 10
Figure 14 - sta_start_mode() ............................................................................................................................. 10
Figure 16 - Imported Files .................................................................................................................................. 11
Figure 17 - system_boot() ................................................................................................................................. 11
Figure 18 - sme_wifi_is_on() ............................................................................................................................. 11
4 HTML Files ......................................................................................................................................................... 13
4.1
index.html .................................................................................................................................................. 13
Figure - index.html............................................................................................................................................. 13
Figure - doGetStatus() ....................................................................................................................................... 13
4.2
ap.html ...................................................................................................................................................... 14
Figure - ap.html ................................................................................................................................................. 14
Figure - doApply() .............................................................................................................................................. 14
Figure - doStoreSettings() .................................................................................................................................. 15
4.3
sta.html ...................................................................................................................................................... 15
Figure - sta.html ................................................................................................................................................. 15
Figure - doGetNetworks() .................................................................................................................................. 16
Figure - doApply() .............................................................................................................................................. 16
Figure - doStoreSettings() .................................................................................................................................. 16