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

Support send / receive of binary serial data #3345

Merged
merged 1 commit into from
Jul 28, 2018

Conversation

emontnemery
Copy link
Contributor

@emontnemery emontnemery commented Jul 27, 2018

Add command serialsend4 which supports sending and receiving raw binary data, including NUL character.
Sending of data is done with binary data in the mqtt message

Received data is sent as hex-strings, example:
tasmota/sonoff_0FAC39/tele/RESULT:{"SerialReceived":"403f10003c0304430000948583120d"}
Another option could be to send the received data in a non JSON-endoded message.

The changes can be included also in the softserial bridge in xdrv_08_serial_bridge.ino, please let me know and I'll update the PR with sames changes there.

@ascillato
Copy link
Contributor

👍

@arendst arendst merged commit ade9535 into arendst:development Jul 28, 2018
arendst added a commit that referenced this pull request Jul 28, 2018
Add command SerialSend4 to send binary serial data (#3345)
curzon01 pushed a commit to curzon01/Tasmota that referenced this pull request Sep 7, 2018
Support send / receive of binary serial data
curzon01 pushed a commit to curzon01/Tasmota that referenced this pull request Sep 7, 2018
Add command SerialSend4 to send binary serial data (arendst#3345)
@emontnemery emontnemery deleted the serial_bridge_raw branch December 2, 2018 19:49
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.

3 participants