python icon indicating copy to clipboard operation
python copied to clipboard

feat: Send ping with a channel index

Open renanbastos93 opened this issue 11 months ago • 8 comments

Now we can send ping messages with a channel index. Additionally, a new unit test has been added to simulate this functionality, and other tests have been fixed.

e.g

$ meshtastic --sendping --ch-index 1 
# output:
# Connected to radio
# Sending ping message to ^all

renanbastos93 avatar Mar 21 '24 18:03 renanbastos93

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 21 '24 18:03 CLAassistant

I had one small improvement to suggest. I'm assuming these tests as you've written them pass; there's a lot of work to improve the tests that's needed (I have a branch in progress that at least gets things back to passing), so I imagine there might need to be more changes there, but that shouldn't block this PR as long as what you've added/changed still works, I think.

Yes, it's working. I've conducted numerous tests locally

renanbastos93 avatar Mar 21 '24 18:03 renanbastos93

The reply app has been deprecated in recent firmware, it was designed to be a developer starting point so it is commented out and not a active port anymore in firmware releases.

garthvh avatar Mar 21 '24 19:03 garthvh

The reply app has been deprecated in recent firmware, it was designed to be a developer starting point so it is commented out and not a active port anymore in firmware releases.

I apologize for the confusion. Could you please clarify if this CLI has been deprecated? If so, which CLI should I use instead?

renanbastos93 avatar Mar 21 '24 19:03 renanbastos93

Oh right, I forgot about that completely. My feeling is that we can merge this, but also add a warning to --sendping that REPLY_APP is deprecated, and remove it from this library in a couple point releases.

@renanbastos93: the CLI itself isn't deprecated, but the ping/auto-reply functionality is in the process of being removed from the meshtastic firmware, so the messages that this sends won't get replies from nodes with newer firmware, and so won't be supported in any clients going forward. So users of the ping will need to find alternatives for their use cases regardless.

ianmcorvidae avatar Mar 21 '24 19:03 ianmcorvidae

Oh right, I forgot about that completely. My feeling is that we can merge this, but also add a warning to --sendping that REPLY_APP is deprecated, and remove it from this library in a couple point releases.

@renanbastos93: the CLI itself isn't deprecated, but the ping/auto-reply functionality is in the process of being removed from the meshtastic firmware, so the messages that this sends won't get replies from nodes with newer firmware, and so won't be supported in any clients going forward. So users of the ping will need to find alternatives for their use cases regardless.

Oh, I understand now. So if I need to undergo a treatment involving ping, I'll have to explore alternative options.

renanbastos93 avatar Mar 21 '24 19:03 renanbastos93

It got pulled as it was pretty spammy and was incomplete, not sure if it should be in the CLI, pretty quickly it won't work for most users.

garthvh avatar Mar 21 '24 19:03 garthvh

It got pulled as it was pretty spammy and was incomplete, not sure if it should be in the CLI, pretty quickly it won't work for most users.

It's okay, no worries. Do you believe we should close this PR?

renanbastos93 avatar Mar 21 '24 20:03 renanbastos93

@garthvh anything else?

renanbastos93 avatar Mar 24 '24 02:03 renanbastos93

Sorry not to get back to you. I do think at this point we should close this PR given this functionality is being removed from firmware. I'll get something together separately to remove --sendpingentirely.

ianmcorvidae avatar Mar 24 '24 04:03 ianmcorvidae

Sorry not to get back to you. I do think at this point we should close this PR given this functionality is being removed from firmware. I'll get something together separately to remove --sendpingentirely.

of course dude, see ya

renanbastos93 avatar Mar 24 '24 13:03 renanbastos93