olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
295 stars 67 forks source link

Tx, mbridge, add support for requesting an option by index #82

Closed olliw42 closed 1 year ago

olliw42 commented 1 year ago

for lua scripts on memory constraint systems we may need to be able to request the settings for a parameter individually. See https://github.com/olliw42/mLRS/issues/74.

olliw42 commented 1 year ago

I have added support for calling a parameter by index. https://github.com/olliw42/mLRS/commit/0bd0aadb7c858de5988a62fe107fe1c7b0118d67 In the latest commit is also find an example lua script where this mechanism is used instead of the RequestList approach. It should help to realize how the byIndex mechanism is used.

hopefully this helps with getting better along with a bw script

@jasonwang01 FYI