Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ESP32: need help to understand this code

Status
Not open for further replies.

sushant_21

Junior Member level 3
Joined
Apr 30, 2017
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Mumbai
Activity points
269
hi all,

i wanted to implement httpserver in my project, i came across one example, but i have failed to understand this code, as you can see in below link,
**broken link removed**

1. i couldnt understand what this signifies, or purpose, also this is extern, means it is defined at another location i couldent fined may be wrongly undrstood as definition,

Code:
/* embedded binary data */
extern const uint8_t style_css_start[] asm("_binary_style_css_start");
extern const uint8_t style_css_end[]   asm("_binary_style_css_end");
extern const uint8_t jquery_gz_start[] asm("_binary_jquery_gz_start");
extern const uint8_t jquery_gz_end[] asm("_binary_jquery_gz_end");
extern const uint8_t code_js_start[] asm("_binary_code_js_start");
extern const uint8_t code_js_end[] asm("_binary_code_js_end");
extern const uint8_t index_html_start[] asm("_binary_index_html_start");
extern const uint8_t index_html_end[] asm("_binary_index_html_end");

2. i understood he is trying to sent index.html file data from below line, but how it works i didnt understand

Code:
netconn_write(conn, index_html_start, index_html_end - index_html_start, NETCONN_NOCOPY);

i juts need help in understanding execution of this code, as i need to code my own webconsole,

any help would be appreciated.

Thanks!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top