Skip to content

[pybricksdev] Currently intended way to send data to hub? #333

Answered by dlech
Novakasa asked this question in Q&A
Discussion options

You must be logged in to vote

send_block is for sending the program and not for general use. Try this instead:

from pybricksdev.connections import NUS_RX_UUID

...

    await hub.client.write_gatt_char(NUS_RX_UUID, b"message", False)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Novakasa
Comment options

@dlech
Comment options

Answer selected by Novakasa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
software: pybricksdev Issues related to the pybrickdev Python package topic: communication Issues related to hub-to-hub/phone/computer communcation
2 participants