Async Comm
A library for asynchronous serial communication
Functions
tcp_client_hello_world.cpp File Reference
#include <async_comm/tcp_client.h>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <chrono>
#include <thread>
#include <vector>

Go to the source code of this file.

Functions

void callback (const uint8_t *buf, size_t len)
 Callback function for the async_comm library. More...
 
int main ()
 

Detailed Description

Author
Rein Appeldoorn reinz.nosp@m.or@g.nosp@m.mail..nosp@m.com

This example opens a TCP client that sends "hello world" messages.

Definition in file tcp_client_hello_world.cpp.

Function Documentation

§ callback()

void callback ( const uint8_t *  buf,
size_t  len 
)

Callback function for the async_comm library.

Prints the received bytes to stdout.

Parameters
bufReceived bytes buffer
lenNumber of bytes received

Definition at line 59 of file tcp_client_hello_world.cpp.