mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
cleaning
This commit is contained in:
parent
a62cf6431a
commit
85e9593333
2 changed files with 85 additions and 29 deletions
20
README.md
20
README.md
|
|
@ -1,11 +1,11 @@
|
|||
# mc-cli
|
||||
# mccli
|
||||
|
||||
mc-cli.py : CLI interface to MeschCore BLE companion app
|
||||
mccli.py : CLI interface to MeschCore BLE companion app
|
||||
|
||||
## Usage
|
||||
|
||||
<pre>
|
||||
$ mc-cli.py <args> <commands>
|
||||
$ mccli.py <args> <commands>
|
||||
</pre>
|
||||
|
||||
### Arguments
|
||||
|
|
@ -40,14 +40,14 @@ Commands are given after arguments, they can be chained.
|
|||
### Examples
|
||||
|
||||
<pre>
|
||||
$ ./mc-cli.py -s infos
|
||||
$ ./mccli.py -s infos
|
||||
Scanning for devices
|
||||
Found device : F0:F5:BD:4F:9B:AD: MeshCore
|
||||
Connexion started
|
||||
{'adv_type': 1, 'public_key': '54c11cff0c2a861cfc5b0bd6e4b81cd5e6ca85e058bf53932d86c87dc7a20011', 'device_loc': '000000000000000000000000', 'radio_freq': 867500, 'radio_bw': 250000, 'radio_sf': 10, 'radio_cr': 5, 'name': 'toto'}
|
||||
cmd ['infos'] processed ...
|
||||
|
||||
$ ./mc-cli.py -a F0:F5:BD:4F:9B:AD get_time
|
||||
$ ./mccli.py -a F0:F5:BD:4F:9B:AD get_time
|
||||
Connexion started
|
||||
Current time : 2024-05-15 12:52:53 (1715770373)
|
||||
cmd ['get_time'] processed ...
|
||||
|
|
@ -55,19 +55,19 @@ cmd ['get_time'] processed ...
|
|||
$ date
|
||||
Tue Feb 4 12:55:05 CET 2025
|
||||
|
||||
$ ./mc-cli.py -a F0:F5:BD:4F:9B:AD sync_time get_time
|
||||
$ ./mccli.py -a F0:F5:BD:4F:9B:AD sync_time get_time
|
||||
Connexion started
|
||||
True
|
||||
cmd ['sync_time'] processed ...
|
||||
Current time : 2025-02-04 12:55:24 (1738670124)
|
||||
cmd ['get_time'] processed ...
|
||||
|
||||
$ ./mc-cli.py -a F0:F5:BD:4F:9B:AD contacts
|
||||
$ ./mccli.py -a F0:F5:BD:4F:9B:AD contacts
|
||||
Connexion started
|
||||
{}
|
||||
cmd ['contacts'] processed ...
|
||||
|
||||
$ ./mc-cli.py -a F0:F5:BD:4F:9B:AD sleep 10 contacts
|
||||
$ ./mccli.py -a F0:F5:BD:4F:9B:AD sleep 10 contacts
|
||||
Connexion started
|
||||
Advertisment received
|
||||
cmd ['sleep', '10'] processed ...
|
||||
|
|
@ -87,7 +87,7 @@ cmd ['sleep', '10'] processed ...
|
|||
}
|
||||
cmd ['contacts'] processed ...
|
||||
|
||||
$ ./mc-cli.py -a F0:F5:BD:4F:9B:AD sendto flo2 "Hello flo2" sleep 10
|
||||
$ ./mccli.py -a F0:F5:BD:4F:9B:AD sendto flo2 "Hello flo2" sleep 10
|
||||
Connexion started
|
||||
{'type': 1, 'expected_ack': b'9\x05\x0c\x12', 'suggested_timeout': 3260}
|
||||
cmd ['sendto', 'flo2', 'Hello flo2'] processed ...
|
||||
|
|
@ -96,7 +96,7 @@ Received ACK
|
|||
Msgs are waiting
|
||||
cmd ['sleep', '10'] processed ...
|
||||
|
||||
$ ./mc-cli.py -a F0:F5:BD:4F:9B:AD recv
|
||||
$ ./mccli.py -a F0:F5:BD:4F:9B:AD recv
|
||||
Connexion started
|
||||
{'type': 'PRIV', 'pubkey_prefix': 'd6e43f8e9ef2', 'path_len': 255, 'txt_type': 0, 'sender_timestamp': 1738670421, 'text': 'hi'}
|
||||
cmd ['recv'] processed ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue