new_cmd - make it not based on globals. Now command can be re-entrant?

don't parse args in new_cmd - just cmd & args string. (we can have glbal fns to perform this if required, but current implementation not good for "my name" type args.
Add context in command fn structure.  This is generic ptr for any purpose.
modify extsing command usage to fit.
Add logging commands loglevel n and logfeature m n
This commit is contained in:
btsimonh
2022-03-05 10:10:56 +00:00
parent 22e43c0176
commit e9a7d1d4eb
8 changed files with 271 additions and 166 deletions

View File

@ -5,6 +5,7 @@
#include "../new_cfg.h"
#include "../ota/ota.h"
#include "../new_cmd.h"
#include "../drv_tuyaMCU.h"
#ifdef WINDOWS
// nothing