rfquack / RFQuack-cli

Command line interface client to RFQuack dongles
https://github.com/trendmicro/RFQuack
GNU General Public License v2.0
10 stars 3 forks source link

[Question] Setting radioToUse #5

Open jpdias opened 3 years ago

jpdias commented 3 years ago

Hello. I'm trying to use the out-of-the-box modules provided by RFQuack, but I can't manage to change the default radio to another one.

As an example, I have connected two radios (radioA, which is a CC1101 and radioB, which is an NRF24). As I want to use the radioB (1), and the default is the radioA (0), how can I change them?

After going trough the documentation and code, I couldn't find a way of passing a value of the type "rfquack_WhichRadioValue" by using the CLI. I hope that the attached image helps understand the situation.

image

Thanks!

FiorixF1 commented 3 years ago

Hi,

This should work

wr = pb.__dict__["WhichRadioValue"]()
wr.value = 1   # 0 for RadioA, 1 for RadioB ...
q.roll_jam.listen_radio = wr
jpdias commented 3 years ago

Hey @FiorixF1,

It really did work! But shouldn't there be any kind of macros for setting the radios?

Thanks!

phretor commented 3 years ago

@jpdias yes, having a macro could be useful. Unfortunately we don't have much time to dedicate to this project, so we're hoping that someone with a big ❤️ will do it, eventually 😄

phretor commented 3 years ago

Leaving this open as a reminder to implement a shortcut function.