Fix '--get security' (incorrect AdminMessage.ConfigType value). by cpatulea · Pull Request #907 · meshtastic/python
requestConfig was assuming that the order of fields in meshtastic.LocalConfig matches the order of enum values in AdminMessage.ConfigType. This is true for 'device', 'position', etc. but is NOT true for 'security' due to the intervening 'version' field. Look up LocalConfig fields by name, not index, to prevent this error in the future. LocalConfig.security was introduced in meshtastic/protobufs#553