python
python copied to clipboard
feat: Send ping with a channel index
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
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
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.
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?
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 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.
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 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?
@garthvh anything else?
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 --sendping
entirely.
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
--sendping
entirely.
of course dude, see ya