Open martin-g-it opened 3 years ago
Example output (coap protocol)
Not sure about this. Why not simply grep the key you are looking for?
Agree, in fact it would be even better if the -d (debug) would only spit out a true JSON (with " quotes instead of ') Or have this status printed upon a arg like -json
also the cl (Child Lock) value should then be within quotes instead of plain True/False
@martin-g-it I did a bigger refactoring in #81 (formatting is done in a single base class, so only one entry point in the future). Beside the uppercase "False" this is valid json, but I've looked into this and will make a new PR after my PR is merged.
Just to mention this:
Added the option --status to return single status value.
Useful to retrieve single values to update ie. Domoticz custom sensors. Option should work for plain_coap and coap; not included for plain http (class HTTPAirCli) Tested and working for CoAPCli class; the PlainCoAPAirCli class / protocol I cannot test.