I should also send a belated heads up to the group.  The "target config"
command has changed slightly in the latest newt in the develop branch.
Now, the command is:

    target config show <target-name>

(i.e., "config" became "config show").

The reason for this change is to allow support for additional
configuration-related commands.  Unfortunately, I didn't have enough
foresight to make config a command group from the start.

Sorry for the churn, all.

Chris

On Thu, Dec 15, 2016 at 10:13:44AM -0800, Christopher Collins wrote:
> Hi Then,
> 
> I didn't see the png files; did you forgot to attach them?  Also, the
> output.txt file appears to be incomplete.  One easy way to capture newt
> output is to use the "-o <filename>" option.  For example:
> 
>     newt -o output.txt target config myble
> 
> All output gets printed to the terminal, but it also gets written to the
> specified file.  Then you can just attach output.txt to your next email.
> 
> Also, just to be clear, it is recommended that you only change your
> *target*'s syscfg.  If you change other packages, like apps/bletiny, it
> might result in conflicts the next time you update your
> apache-mynewt-core repository.
> 
> So, I would expect you to have the following file:
> 
>     targets/myble/syscfg.yml
> 
> This file would look something like this:
> 
>     syscfg.vals:
>         STATS_CLI: 1
> 
> Finally, you should not need to add the "@apache-mynewt-core/sys/stats"
> dependency to bletiny.  The net/nimble/host package depends on
> the stats package, so it should already get included in your project.
> 
> Thanks,
> Chris
> 
> On Thu, Dec 15, 2016 at 02:13:55PM +0800, then yon 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.
> > 
> > 
> > Regards,
> > Then Yoong Ze

Reply via email to