Skip to content

Conversation

@dsiee
Copy link

@dsiee dsiee commented Jul 10, 2019

There doesn't seem to be an example for this floating around that i could find, so here is one.

Takes a line from the uart_server, strips the formatting and prints the result. Could be useful for people implementing custom commands over UART as it shows the readline() function.

dsiee added 2 commits July 10, 2019 20:25
Simple example taking a UART message such as that sent from the bluefruit app and printing the cleaned message to the REPL.
@ladyada ladyada requested a review from dhalbert July 10, 2019 16:12
@dhalbert
Copy link
Collaborator

Hi - I'm not sure what you're sending from the client side. Are you using the BluefruitConnect app, and if so how? Are you using its UART functionality or sending something else?

@dsiee
Copy link
Author

dsiee commented Jul 10, 2019 via email

@dhalbert
Copy link
Collaborator

I don't see that we have a separate packet type for raw text. The UART section in the iOS Bluefruit app just sends straight text, without any prefix bytes. So I'm confused about where the prefix bytes you mention are coming from. The color picker, etc. do have prefix bytes.

@dsiee
Copy link
Author

dsiee commented Jul 22, 2019 via email

@dhalbert
Copy link
Collaborator

dhalbert commented Nov 1, 2019

Closing this for now, but happy to re-open if you would like to bring it up again.

@dhalbert dhalbert closed this Nov 1, 2019
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

Successfully merging this pull request may close these issues.

2 participants