Skip to content

Commit 2f19f4b

Browse files
committed
Documentation update
1 parent da7c73d commit 2f19f4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+775
-494
lines changed

API.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ the `<key>` parameter.
111111
format.
112112
* `http://<IP-ADDRESS>/status`
113113
* Returns:
114-
``` {"frame_rate":0,"framesize":9,"quality":10,"xclk":8,"brightness":0,"contrast":0,"saturation":0,"sharpness":0,"special_effect":0,"wb_mode":0,"awb":1,"awb_gain":1,"aec":1,"aec2":0,"ae_level":0,"aec_value":204,"agc":1,"agc_gain":0,"gainceiling":0,"bpc":0,"wpc":1,"raw_gma":1,"lenc":1,"vflip":1,"hmirror":1,"dcw":1,"colorbar":0,"cam_name":"ESP32 test camera","code_ver":"Mar 10 2022 @ 14:00:45","rotate":"0"}```
114+
115+
```json
116+
{"cam_name":"ESP32 CAM Web Server","stream_url":"http://<ip:port>/view?mode=stream","code_ver":"Jan 7 2023 @ 19:16:55","lamp":0,"autolamp":false,"lamp":0,"flashlamp":0,"rotate":0,"xclk":8,"frame_rate":12,"framesize":8,"quality":12,"brightness":0,"contrast":0,"saturation":0,"sharpness":0,"denoise":0,"special_effect":0,"wb_mode":0,"awb":1,"awb_gain":1,"aec":1,"aec2":0,"ae_level":0,"aec_value":204,"agc":1,"agc_gain":0,"gainceiling":0,"bpc":0,"wpc":1,"raw_gma":1,"lenc":1,"vflip":0,"hmirror":0,"dcw":1,"colorbar":0,"cam_pid":38,"cam_ver":66,"debug_mode":false}
117+
```
115118
* Reboot the camera
116119
* `http://<IP-ADDRESS>/control?var=reboot&val=0`
117120

@@ -187,15 +190,15 @@ The following commands are supported:
187190
188191
## Attaching PWM to the GPIO pins
189192
GPIO pins used for PWM can be defined in the `/httpd.json`, in the `pwm` parameter:
190-
```
193+
194+
```json
191195
{
192196
"my_name": "ESP32 Web Server",
193197
"lamp":0,
194198
"autolamp":true,
195199
"flashlamp":100,
196200
"pwm": [{"pin":4, "frequency":50000, "resolution":9, "default":0}],
197-
"mapping":[ {"uri":"/dump", "path": "/www/dump.html"},
198-
{"uri":"/img", "path": "/www/img"},
201+
"mapping":[ {"uri":"/img", "path": "/www/img"},
199202
{"uri":"/css", "path": "/www/css"},
200203
{"uri":"/js", "path": "/www/js"}],
201204
"debug_mode": false
@@ -216,16 +219,15 @@ will be used for definition of flash lamp PWM. In the example above, the lamp PW
216219

217220
Here is another example of the PWM configuration, used for the popular SG90 servo motor on pin 12:
218221

219-
```
222+
```json
220223
{
221224
"my_name": "ESP32 Web Server",
222225
"lamp":0,
223226
"autolamp":true,
224227
"flashlamp":100,
225228
"pwm": [{"pin":4, "frequency":50000, "resolution":9, "default":0},
226229
{"pin":12, "frequency":50, "resolution":10, "default": 42}],
227-
"mapping":[ {"uri":"/dump", "path": "/www/dump.html"},
228-
{"uri":"/img", "path": "/www/img"},
230+
"mapping":[ {"uri":"/img", "path": "/www/img"},
229231
{"uri":"/css", "path": "/www/css"},
230232
{"uri":"/js", "path": "/www/js"}],
231233
"debug_mode": false

Docs/html/annotated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<div class="textblock">Here are the data structures with brief descriptions:</div><div class="directory">
7171
<table class="directory">
7272
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_c_l_app_cam.html" target="_self">CLAppCam</a></td><td class="desc">Camera Manager Manages all interactions with camera </td></tr>
73-
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_c_l_app_component.html" target="_self">CLAppComponent</a></td><td class="desc">Abstract root class for the appication components </td></tr>
73+
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_c_l_app_component.html" target="_self">CLAppComponent</a></td><td class="desc">Abstract root class for the application components </td></tr>
7474
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_c_l_app_conn.html" target="_self">CLAppConn</a></td><td class="desc">Connection Manager This class manages everything related to connectivity of the application: WiFi, OTA etc </td></tr>
7575
<tr id="row_3_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_c_l_app_httpd.html" target="_self">CLAppHttpd</a></td><td class="desc">WebServer Manager Class for handling web server requests. The web pages are assumed to be stored in the file system (can be SD card or LittleFS). <br />
7676
</td></tr>

Docs/html/app__cam_8h_source.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#a65918dca872c1d5bdcb0bb556451127f"> 39</a></span> <span class="keywordtype">int</span> <a class="code hl_function" href="class_c_l_app_cam.html#a65918dca872c1d5bdcb0bb556451127f">getRotation</a>() {<span class="keywordflow">return</span> myRotation;};</div>
109109
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
110110
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">int</span> <a class="code hl_function" href="class_c_l_app_cam.html#ab160cae01bb6ea313cbbb0aa1aa1cc03">snapToBuffer</a>();</div>
111-
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#aac54409dcd9344abbbe434b237dc505f"> 42</a></span> uint8_t * <a class="code hl_function" href="class_c_l_app_cam.html#aac54409dcd9344abbbe434b237dc505f">getBuffer</a>() {<span class="keywordflow">return</span> fb-&gt;buf;};</div>
112-
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#aa0f1c434be24055bab3abb459a071abd"> 43</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="class_c_l_app_cam.html#aa0f1c434be24055bab3abb459a071abd">getBufferSize</a>() {<span class="keywordflow">return</span> fb-&gt;len;};</div>
113-
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#a1f01a309f73eb36142ab8b449c81a381"> 44</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_c_l_app_cam.html#a1f01a309f73eb36142ab8b449c81a381">isJPEGinBuffer</a>() {<span class="keywordflow">return</span> fb-&gt;format == PIXFORMAT_JPEG;};</div>
111+
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#aac54409dcd9344abbbe434b237dc505f"> 42</a></span> uint8_t * <a class="code hl_function" href="class_c_l_app_cam.html#aac54409dcd9344abbbe434b237dc505f">getBuffer</a>() {<span class="keywordflow">return</span> (fb?fb-&gt;buf:<span class="keyword">nullptr</span>);};</div>
112+
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#aa0f1c434be24055bab3abb459a071abd"> 43</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="class_c_l_app_cam.html#aa0f1c434be24055bab3abb459a071abd">getBufferSize</a>() {<span class="keywordflow">return</span> (fb?fb-&gt;len:0);};</div>
113+
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="class_c_l_app_cam.html#a1f01a309f73eb36142ab8b449c81a381"> 44</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_c_l_app_cam.html#a1f01a309f73eb36142ab8b449c81a381">isJPEGinBuffer</a>() {<span class="keywordflow">return</span> (fb?fb-&gt;format == PIXFORMAT_JPEG:<span class="keyword">false</span>);};</div>
114114
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_c_l_app_cam.html#aaf9c6d7306c5122eb6766011b8fc4c4c">releaseBuffer</a>(); </div>
115115
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
116116
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_c_l_app_cam.html#a4edda1d5a10e22bdb056be4cb82d9c1d">dumpStatusToJson</a>(json_gen_str_t * jstr, <span class="keywordtype">bool</span> full_status = <span class="keyword">true</span>);</div>
@@ -179,7 +179,7 @@
179179
<div class="ttc" id="aclass_c_l_app_cam_html_ac20c8599dfc6112502b2ca9e446e6af5"><div class="ttname"><a href="class_c_l_app_cam.html#ac20c8599dfc6112502b2ca9e446e6af5">CLAppCam::getSensorPID</a></div><div class="ttdeci">int getSensorPID()</div><div class="ttdef"><b>Definition:</b> app_cam.h:28</div></div>
180180
<div class="ttc" id="aclass_c_l_app_cam_html_af277f42041c7c0a561bd8c8b087f4b3a"><div class="ttname"><a href="class_c_l_app_cam.html#af277f42041c7c0a561bd8c8b087f4b3a">CLAppCam::start</a></div><div class="ttdeci">int start()</div><div class="ttdef"><b>Definition:</b> app_cam.cpp:8</div></div>
181181
<div class="ttc" id="aclass_c_l_app_cam_html_af812f50b9e35bcdb56af399c4fafd8f2"><div class="ttname"><a href="class_c_l_app_cam.html#af812f50b9e35bcdb56af399c4fafd8f2">CLAppCam::getSensor</a></div><div class="ttdeci">sensor_t * getSensor()</div><div class="ttdef"><b>Definition:</b> app_cam.h:29</div></div>
182-
<div class="ttc" id="aclass_c_l_app_component_html"><div class="ttname"><a href="class_c_l_app_component.html">CLAppComponent</a></div><div class="ttdoc">Abstract root class for the appication components.</div><div class="ttdef"><b>Definition:</b> app_component.h:14</div></div>
182+
<div class="ttc" id="aclass_c_l_app_component_html"><div class="ttname"><a href="class_c_l_app_component.html">CLAppComponent</a></div><div class="ttdoc">Abstract root class for the application components.</div><div class="ttdef"><b>Definition:</b> app_component.h:14</div></div>
183183
</div><!-- fragment --></div><!-- contents -->
184184
<!-- start footer part -->
185185
<hr class="footer"/><address class="footer"><small>

Docs/html/app__component_8h.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
8484
Data Structures</h2></td></tr>
8585
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_l_app_component.html">CLAppComponent</a></td></tr>
86-
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract root class for the appication components. <a href="class_c_l_app_component.html#details">More...</a><br /></td></tr>
86+
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract root class for the application components. <a href="class_c_l_app_component.html#details">More...</a><br /></td></tr>
8787
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
8888
</table>
8989
</div><!-- contents -->

0 commit comments

Comments
 (0)