Evaluation of preferences settings will behave inconsistent:
--set mqtt.enabled 1 --set 0 1 will write nothing at all and show an error hint on the last
--set 0 1 --set mqtt.enabled 1 will write the correct setting but show no error
--set mqtt.enabled 1 --set mqtt 1 --set mqtt.username abc will write the 2 valid entries but again show no error.
Reason is the way how preferences are updated within the callback onConnected() in the clause if args.set:. Evaluation handles the incoming list of arguments correctly, but does not take in account, that there might be a mix of correct and incorrect entries.
Before preparing a fix, I want to quickly check what is the intended behavior for such cases:
a) shall we discard all changes and just show the faulty entries?
b) shall we accept the correct entries, send them to the radio but also show all of which have failed?
What is your opinion?
Evaluation of preferences settings will behave inconsistent:
--set mqtt.enabled 1 --set 0 1will write nothing at all and show an error hint on the last--set 0 1 --set mqtt.enabled 1will write the correct setting but show no error--set mqtt.enabled 1 --set mqtt 1 --set mqtt.username abcwill write the 2 valid entries but again show no error.Reason is the way how preferences are updated within the callback
onConnected()in the clauseif args.set:. Evaluation handles the incoming list of arguments correctly, but does not take in account, that there might be a mix of correct and incorrect entries.Before preparing a fix, I want to quickly check what is the intended behavior for such cases:
a) shall we discard all changes and just show the faulty entries?
b) shall we accept the correct entries, send them to the radio but also show all of which have failed?
What is your opinion?