arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
audio_tools::UDPStream Class Reference

#include <Communication.h>

Inheritance diagram for audio_tools::UDPStream:

Public Member Functions

 UDPStream (const char *ssid, const char *password)
 
int available () override
 
uint8_t begin (IPAddress a, uint16_t port)
 Starts to send data to the indicated address / port.
 
uint8_t begin (uint16_t port, uint16_t port_ext=0)
 Starts to receive data from/with the indicated port.
 
size_t readBytes (uint8_t *buffer, size_t length) override
 
IPAddress remoteIP ()
 We use the same remote ip as defined in begin for write.
 
uint16_t remotePort ()
 We use the same remote port as defined in begin for write.
 
size_t write (const uint8_t *buffer, size_t size) override
 

Protected Member Functions

void connect ()
 

Protected Attributes

const char * password = nullptr
 
IPAddress remote_address_ext
 
uint16_t remote_port_ext
 
const char * ssid = nullptr
 

Detailed Description

A Simple exension of the WiFiUDP class which makes sure that the basic Stream functioinaltiy which is used as AudioSource and AudioSink

Author
Phil Schatzmann

Member Function Documentation

◆ available()

int audio_tools::UDPStream::available ( )
inlineoverride

Provides the available size of the current package and if this is used up of the next package

◆ write()

size_t audio_tools::UDPStream::write ( const uint8_t *  buffer,
size_t  size 
)
inlineoverride

Replys will be sent to the initial remote caller


The documentation for this class was generated from the following file: