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

Sending "ping" and "pong" messages to Solokey extension #591

Open
nakatsuka-y opened this issue Dec 19, 2021 · 1 comment
Open

Sending "ping" and "pong" messages to Solokey extension #591

nakatsuka-y opened this issue Dec 19, 2021 · 1 comment

Comments

@nakatsuka-y
Copy link

Hello,

This tutorial shows us how to implement a Solokey extension where we can exchange "ping" and "pong" messages.

So far, I was able to implement, build, and upload the updated firmware to my Solokey.

However, the document doesn't mention how to send messages to Solokey.
I didn't find any issues and documents in this repo that provides instructions on how to do this.

Can anyone help me with this?
I'd be happy to update the documentation if I've managed to send the messages :)

Thanks!

@coelner
Copy link

coelner commented Dec 26, 2021

https://github.com/solokeys/solo-python/blob/a123699ff473848316a93d8ddd0b137ac491ec82/solo/cli/key.py#L479

solo key  ping --help
Usage: solo key ping [OPTIONS]

  Send ping command to key

Options:
  -s, --serial TEXT  Serial number of Solo to use
  --udp              Communicate over UDP with software key
  --ping-data TEXT   Data to send (default: pong)
  --help             Show this message and exit.

solo key  ping --ping-data hello
ping returned: b'hello'
took 7 ms

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

No branches or pull requests

2 participants