Good morning,
I looked at this a bit more, and tested a few things with one of my apps. I'm
wondering what version of apache-mynewt-core you have in your repos/ directory.
I'll have to update the docs, because with the current version, I did not need
to add the
/* Initialize the statistics package */
rc = stats_module_init();
assert(rc == 0);
to my app. All I had to do was add STATS_CLI: 1 to my syscfg.yml file for the
target and the stats package began to work from the command line. You of course
have to have the Console and Shell working first. :-)
In fact, the tutorial on enabling the stats package at
http://mynewt.apache.org/latest/os/tutorials/bletiny_project/
<http://mynewt.apache.org/latest/os/tutorials/bletiny_project/> no longer
mentions adding the above code. I'll work on updating the BLE Users guide to
reflect the changes. It's been hard to keep the docs sync'ed with all the
changes lately to the code and how things work now, but we're working on it!
Best regards,
dg
> On Dec 15, 2016, at 1:13 AM, then yon <[email protected]> wrote:
>
> Dear dg,
>
> Thanks for your reply.
>
> i had followed your step to add syscfg.yml under targets but it doesn't help.
>
> Please find the attachment for:
>
> 1. output.txt: output of the target config command.
>
> 2. syscfg_yml_app.png: print screen of the code and directory list for the
> syscfg.yml under app.
>
> 3. syscfg_yml_target.png: print screen of the code and directory list for the
> syscfg.yml under targets.
>
> Please let me know if you need more information.
>
> Thank you.
--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin
<http://linkedin.com/in/davidgsimmons> • Twitter
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.
* If you cannot read the PGP.sig attachment, please go to
* http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
* Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!
There are only 2 hard things in computer science: Cache invalidation, naming
things, and off-by-one errors.