Data Encoding and Decoding
Network streams, such as TCP (also Serial connections) send raw bytes of data from one place to another. If you need to send a message over a stream, you need to be able to reliably encode it to the stream and decode it at the other end, regardless of the type of data it contains.
These nodes provide encoding and decoding functionality.
SLIP is an older protocol that uses more overhead than COBS. Unless you need to use SLIP to exchange data with other applications, use COBS.
Consistent Overhead Byte Stuffing (COBS)
- Cobs Decode - decode raw data into packets using COBS
- Cobs Encode - encode packets into a raw stream using COBS
Serial Line Internet Protocol (SLIP)
- Slip Decode - decode raw data into packets using SLIP
- Slip Decode - encode packets into a raw stream using SLIP
Transmission Control Protocol (TCP)
TCP provides a 'reliable' network connection for sending streams of data.
Fugio can use TCP to automatically send and receive pins
Fugio also supports sending and receive raw data over TCP
- TCP Receive Raw - receive a stream of raw data from a network socket
- TCP Send Raw - send a stream of raw data over a network
User Datagram Protocol (UDP)
UDP sends data in packets without knowing if the data was received or not.
- UDP Receive Raw - receive packets of raw data over a network
- UDP Send Raw - send packets of raw data over a network
Hypertext Transfer Protocol (HTTP)
- Get (HTTP) - request files and data over a network using the HTTP protocol
- Websocket Client - receive a stream of text/raw data over a network
- Websocket Data Server - send a stream of raw data to multiple receivers
Generic Packet Encoding
If you are working with some custom data transmission method and would like a generalised packet encoding scheme, the following two nodes provide encoding and decoding.
Currently work in progress and subject to incompatible changes.