Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a command payload sending option? #38

Open
Terramoto opened this issue Jan 3, 2025 · 2 comments
Open

Is there a command payload sending option? #38

Terramoto opened this issue Jan 3, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@Terramoto
Copy link

Terramoto commented Jan 3, 2025

Hello,

It looks like in lxmf payloads there's a section fields that is usually used to be interpreted as a command rather than just test but the option appears to be missing on meshchat.

Command payload:

[2025-01-03 21:34:11] [Debug] LXMF - Message received:
[2025-01-03 21:34:11] [Debug] -   Date/Time: 2025-01-03 21:34:13
[2025-01-03 21:34:11] [Debug] -       Title:
[2025-01-03 21:34:11] [Debug] -     Content:
[2025-01-03 21:34:11] [Debug] -      Fields: {9: [{0: 'ola'}]}
[2025-01-03 21:34:11] [Debug] -        Size: 31 bytes
[2025-01-03 21:34:11] [Debug] -      Source: <765ca1763e4eb5453234f659cf55a782>
[2025-01-03 21:34:11] [Debug] - Destination: <c715110b3da697e7d665f2bb90bdf134>
[2025-01-03 21:34:11] [Debug] -   Signature: Validated
[2025-01-03 21:34:11] [Debug] -    Attempts: 0
[2025-01-03 21:34:11] [Debug] -      Method: 3
[2025-01-03 21:34:11] [Debug] LXMF - Call to registered message received callback
[2025-01-03 21:34:11] [Notice] cmd: ola

Message payload:

[2025-01-03 21:34:19] [Debug] LXMF - Message received:
[2025-01-03 21:34:19] [Debug] -   Date/Time: 2025-01-03 21:34:21
[2025-01-03 21:34:19] [Debug] -       Title:
[2025-01-03 21:34:19] [Debug] -     Content: ola
[2025-01-03 21:34:19] [Debug] -      Fields: {}
[2025-01-03 21:34:19] [Debug] -        Size: 8 bytes
[2025-01-03 21:34:19] [Debug] -      Source: <765ca1763e4eb5453234f659cf55a782>
[2025-01-03 21:34:19] [Debug] - Destination: <c715110b3da697e7d665f2bb90bdf134>
[2025-01-03 21:34:19] [Debug] -   Signature: Validated
[2025-01-03 21:34:19] [Debug] -    Attempts: 0
[2025-01-03 21:34:19] [Debug] -      Method: 3
[2025-01-03 21:34:19] [Debug] LXMF - Call to registered message received callback

It would appear the command is send in a list with the id:
FIELD_COMMANDS = 0x09

@liamcottle
Copy link
Owner

Hey there! Commands aren't supported in MeshChat yet. I don't have any plans to add them in right now. Is there something specific you're trying to interact with?

@liamcottle liamcottle added the enhancement New feature or request label Jan 5, 2025
@Terramoto
Copy link
Author

Hey there! Commands aren't supported in MeshChat yet. I don't have any plans to add them in right now. Is there something specific you're trying to interact with?

Hey there, i was trying to run commands on one of the distribution groups script in https://github.com/SebastianObi/LXMF-Tools i'm currently running the extended one which accepts commands via normal messaging, but because i noticed lxmf, sideband and the script supported it i thought MeshChat would also have it or that the feature was something part of the network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants