gabbapeople/simple-byte-protocol@0.0.5

A simple communication protocol for a UART interface. To read more follow https://medium.com/p/9ce67cc69d3c
NodeDescription
add-byte-to-packet
Fulfills a packet with values
add-checksum
Calculates a packet "checksum". Adds a "checksum" byte to the end of a packet
add-head
Adds a "header" byte to the beginning of the packet
check-packet
Calculates a packet "checksum". If the calculated "checksum" matches the one mentioned in a packet, then a packet arrived undamaged
example-input
Example. 4 byte protocol. Receiving side
example-output
Example. 4 byte protocol. Sending side
get-byte-from-packet
Pulls a byte value from a packet depending on the sequence number
packet
Creates a packet type of a specific size
read-packet
Compares the specified "header" byte with the byte received through a UART interface. If a "header" byte is found, read-packet puts the received bytes into a packet of the specified size
send-packet
Sends a packet via UART
To use the nodes in your project you should have the gabbapeople/simple-byte-protocol library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.