Skip to content

Commit

Permalink
improvement in lwm2m newinstance call timing
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopi-tlt committed Jan 20, 2021
1 parent 9396fb7 commit 7c22f14
Show file tree
Hide file tree
Showing 63 changed files with 1,487 additions and 389 deletions.
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/annotated.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.4</span>
&#160;<span id="projectnumber">1.0.5</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
4 changes: 2 additions & 2 deletions Samples/AZX_Docs/html/app__cfg_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.4</span>
&#160;<span id="projectnumber">1.0.5</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down Expand Up @@ -116,7 +116,7 @@
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a1c6d5de492ac61ad29aec7aa9a436bbf"><td class="memItemLeft" align="right" valign="top"><a id="a1c6d5de492ac61ad29aec7aa9a436bbf"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="app__cfg_8h.html#a1c6d5de492ac61ad29aec7aa9a436bbf">VERSION</a>&#160;&#160;&#160;&quot;1.0.4&quot;</td></tr>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="app__cfg_8h.html#a1c6d5de492ac61ad29aec7aa9a436bbf">VERSION</a>&#160;&#160;&#160;&quot;1.0.5&quot;</td></tr>
<tr class="memdesc:a1c6d5de492ac61ad29aec7aa9a436bbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">The current version of the Samples. <br /></td></tr>
<tr class="separator:a1c6d5de492ac61ad29aec7aa9a436bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Log Settings</div></td></tr>
Expand Down
4 changes: 2 additions & 2 deletions Samples/AZX_Docs/html/app__cfg_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.4</span>
&#160;<span id="projectnumber">1.0.5</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down Expand Up @@ -102,7 +102,7 @@
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="app__cfg_8h.html#a1c6d5de492ac61ad29aec7aa9a436bbf"> 26</a></span>&#160;<span class="preprocessor">#define VERSION &quot;1.0.4&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="app__cfg_8h.html#a1c6d5de492ac61ad29aec7aa9a436bbf"> 26</a></span>&#160;<span class="preprocessor">#define VERSION &quot;1.0.5&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="app__cfg_8h.html#a0b87e0d3bf5853bcbb0b66a7c48fdc05"> 32</a></span>&#160;<span class="preprocessor">#define LOG_LEVEL AZX_LOG_LEVEL_DEBUG </span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#define LOG_CHANNEL AZX_LOG_TO_MAIN_UART</span></div>
Expand Down
97 changes: 90 additions & 7 deletions Samples/AZX_Docs/html/azx__log_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.4</span>
&#160;<span id="projectnumber">1.0.5</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down Expand Up @@ -135,14 +135,14 @@
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gae9fa7be40e4fcae6093707def57f82a5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__log_conf.html#gae9fa7be40e4fcae6093707def57f82a5">AZX_LOG_LEVEL_E</a> { <br />
&#160;&#160;<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a8f609b972c7fd17cec42b2c216dc68b4">AZX_LOG_LEVEL_NONE</a> = 0,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5adc5cc122c3a06700e09e4c6d1cc17497">AZX_LOG_LEVEL_TRACE</a> = 1,
&#160;&#160;<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5adc5cc122c3a06700e09e4c6d1cc17497">AZX_LOG_LEVEL_TRACE</a> = 1,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5aa77afa2490f92d58d965e30ce97c8048">AZX_LOG_LEVEL_DEBUG</a> = 2,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a2bdb3bd46fb4a347265f0c966ded4f25">AZX_LOG_LEVEL_INFO</a> = 3,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a0d4c7c18f82729850d7a1c3e35e2f0b8">AZX_LOG_LEVEL_WARN</a> = 4,
<br />
&#160;&#160;<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a0d4c7c18f82729850d7a1c3e35e2f0b8">AZX_LOG_LEVEL_WARN</a> = 4,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5acc52fcbd7aa2088fe583a11661b4abf2">AZX_LOG_LEVEL_ERROR</a> = 5,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a51671d346b1e7d44f8993fa9d2ca174c">AZX_LOG_LEVEL_CRITICAL</a> = 6
&#160;&#160;<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5acc52fcbd7aa2088fe583a11661b4abf2">AZX_LOG_LEVEL_ERROR</a> = 5,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a51671d346b1e7d44f8993fa9d2ca174c">AZX_LOG_LEVEL_CRITICAL</a> = 6,
<a class="el" href="group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a8f609b972c7fd17cec42b2c216dc68b4">AZX_LOG_LEVEL_NONE</a> = 0x7F
<br />
}</td></tr>
<tr class="memdesc:gae9fa7be40e4fcae6093707def57f82a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logging levels. <a href="group__log_conf.html#gae9fa7be40e4fcae6093707def57f82a5">More...</a><br /></td></tr>
Expand Down Expand Up @@ -184,10 +184,16 @@
<tr class="memitem:ab2c4e9406084c9f69c1314a718cc90d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__log_conf.html#gae9fa7be40e4fcae6093707def57f82a5">AZX_LOG_LEVEL_E</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="azx__log_8h.html#ab2c4e9406084c9f69c1314a718cc90d8">azx_log_getLevel</a> (void)</td></tr>
<tr class="memdesc:ab2c4e9406084c9f69c1314a718cc90d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current value of the log level. <a href="azx__log_8h.html#ab2c4e9406084c9f69c1314a718cc90d8">More...</a><br /></td></tr>
<tr class="separator:ab2c4e9406084c9f69c1314a718cc90d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af64520b985c9e8b97fda9dd77279bdd3"><td class="memItemLeft" align="right" valign="top">BOOLEAN&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="azx__log_8h.html#af64520b985c9e8b97fda9dd77279bdd3">azx_log_send_to_file</a> (const CHAR *filename, UINT32 circular_chunks, <a class="el" href="group__log_conf.html#gae9fa7be40e4fcae6093707def57f82a5">AZX_LOG_LEVEL_E</a> min_level, UINT32 max_size_kb)</td></tr>
<tr class="memdesc:af64520b985c9e8b97fda9dd77279bdd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the logging component to output to a file. <a href="azx__log_8h.html#af64520b985c9e8b97fda9dd77279bdd3">More...</a><br /></td></tr>
<tr class="separator:af64520b985c9e8b97fda9dd77279bdd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e999a06dd697da3196e357039081124"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="azx__log_8h.html#a3e999a06dd697da3196e357039081124">azx_log_flush_to_file</a> (void)</td></tr>
<tr class="memdesc:a3e999a06dd697da3196e357039081124"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flushes any outstanding logs to the file. <a href="azx__log_8h.html#a3e999a06dd697da3196e357039081124">More...</a><br /></td></tr>
<tr class="separator:a3e999a06dd697da3196e357039081124"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Logging utilities to print on available output channels. </p>
<dl class="section version"><dt>Version</dt><dd>1.0.2 </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0.5 </dd></dl>
<dl class="section user"><dt>Dependencies</dt><dd><br />
</dd></dl>
<dl class="section author"><dt>Author</dt><dd>Fabio Pintus </dd>
Expand Down Expand Up @@ -218,6 +224,27 @@ <h2 class="memtitle"><span class="permalink"><a href="#a1cff830ca498f89db8a6ba08
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__log_conf.html#ga08e797515ecc2b71223a72c77c6dc6af" title="Initializes the log functionality.">azx_log_init</a></dd></dl>
<p><b>Example</b> </p><pre class="fragment">azx_log_deinit();
</pre>
</div>
</div>
<a id="a3e999a06dd697da3196e357039081124"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e999a06dd697da3196e357039081124">&#9670;&nbsp;</a></span>azx_log_flush_to_file()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void azx_log_flush_to_file </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">

<p>Flushes any outstanding logs to the file. </p>
<p>Without calling this, there is no guarantee of when the logs will be written to the filesystem. It may take longer due to caching. </p>

</div>
</div>
<a id="ab2c4e9406084c9f69c1314a718cc90d8"></a>
Expand All @@ -242,6 +269,62 @@ <h2 class="memtitle"><span class="permalink"><a href="#ab2c4e9406084c9f69c1314a7
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__log_conf.html#ga08e797515ecc2b71223a72c77c6dc6af" title="Initializes the log functionality.">azx_log_init()</a></dd></dl>
<p><b>Example</b> </p><pre class="fragment">AZX_LOG_LEVEL_E level = azx_log_get_log_level();
</pre>
</div>
</div>
<a id="af64520b985c9e8b97fda9dd77279bdd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af64520b985c9e8b97fda9dd77279bdd3">&#9670;&nbsp;</a></span>azx_log_send_to_file()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">BOOLEAN azx_log_send_to_file </td>
<td>(</td>
<td class="paramtype">const CHAR *&#160;</td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UINT32&#160;</td>
<td class="paramname"><em>circular_chunks</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__log_conf.html#gae9fa7be40e4fcae6093707def57f82a5">AZX_LOG_LEVEL_E</a>&#160;</td>
<td class="paramname"><em>min_level</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UINT32&#160;</td>
<td class="paramname"><em>max_size_kb</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">

<p>Gets the logging component to output to a file. </p>
<p>Once this is called all the logs will be sent to a named file. The file will be appended to, so existing logs there will not be removed.</p>
<p>Logs will continue to be sent to USB/UART if that is so configured.</p>
<p>Only one file can be used at the same time, so calling this again with a new filename means that all logs will go to the new file instead of the old one.</p>
<p>The logging can be configured to be done in a circular way by setting circular_chunks to a value greater than 0. Each chunk will have at most max_size_kb KB.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>The name of the file to log to. If NULL, this function does nothing. </td></tr>
<tr><td class="paramname">circular_chunks</td><td>The number of chunks to store circularly (apart from the original one). </td></tr>
<tr><td class="paramname">min_level</td><td>The minimum level of the logs to be stored. </td></tr>
<tr><td class="paramname">max_size_kb</td><td>The maximum size in KB of each size of the log file. Once the file reaches that limit, no further logging will be made to it.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the file can be created and opened, FALSE otherwise </dd></dl>

</div>
</div>
<a id="a7b0daaed2d1a5700a26365e409593a4b"></a>
Expand Down
6 changes: 4 additions & 2 deletions Samples/AZX_Docs/html/azx__log_8h.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ var azx__log_8h =
[ "AZX_LOG_TO_MAX", "group__log_conf.html#gga03b618927cb5d884386832ab76781760acd8c06c121bab2a0f3aede4b76afde39", null ]
] ],
[ "AZX_LOG_LEVEL_E", "group__log_conf.html#gae9fa7be40e4fcae6093707def57f82a5", [
[ "AZX_LOG_LEVEL_NONE", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a8f609b972c7fd17cec42b2c216dc68b4", null ],
[ "AZX_LOG_LEVEL_TRACE", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5adc5cc122c3a06700e09e4c6d1cc17497", null ],
[ "AZX_LOG_LEVEL_DEBUG", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5aa77afa2490f92d58d965e30ce97c8048", null ],
[ "AZX_LOG_LEVEL_INFO", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a2bdb3bd46fb4a347265f0c966ded4f25", null ],
[ "AZX_LOG_LEVEL_WARN", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a0d4c7c18f82729850d7a1c3e35e2f0b8", null ],
[ "AZX_LOG_LEVEL_ERROR", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5acc52fcbd7aa2088fe583a11661b4abf2", null ],
[ "AZX_LOG_LEVEL_CRITICAL", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a51671d346b1e7d44f8993fa9d2ca174c", null ]
[ "AZX_LOG_LEVEL_CRITICAL", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a51671d346b1e7d44f8993fa9d2ca174c", null ],
[ "AZX_LOG_LEVEL_NONE", "group__log_conf.html#ggae9fa7be40e4fcae6093707def57f82a5a8f609b972c7fd17cec42b2c216dc68b4", null ]
] ],
[ "azx_log_deinit", "azx__log_8h.html#a1cff830ca498f89db8a6ba0882441231", null ],
[ "azx_log_flush_to_file", "azx__log_8h.html#a3e999a06dd697da3196e357039081124", null ],
[ "azx_log_formatted", "azx__log_8h.html#a024e23064b2dc69cbeeab7b728d4d010", null ],
[ "azx_log_getLevel", "azx__log_8h.html#ab2c4e9406084c9f69c1314a718cc90d8", null ],
[ "azx_log_init", "group__log_conf.html#ga08e797515ecc2b71223a72c77c6dc6af", null ],
[ "azx_log_send_to_file", "azx__log_8h.html#af64520b985c9e8b97fda9dd77279bdd3", null ],
[ "azx_log_setLevel", "azx__log_8h.html#a7b0daaed2d1a5700a26365e409593a4b", null ]
];
Loading

0 comments on commit 7c22f14

Please sign in to comment.