arduino-midi
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
midi::MidiUdp< UDPClass > Class Template Reference

Simple UDP wrapper class which sends all packages to the same destination. More...

#include <MidiUdp.h>

Inheritance diagram for midi::MidiUdp< UDPClass >:

Public Member Functions

 MidiUdp (char *addessStr, int targetPort)
 Sends all packets to the indicated host name and port.
 
 MidiUdp (IPAddress address, int targetPort)
 Sends all packets to the indicated address and port.
 
bool isValidHost ()
 Returns false if the host could not be resolved or the last packet could not be sent.
 
void setTargetPort (int port)
 Changes the target port.
 
size_t write (const uint8_t *buffer, size_t size)
 Writes the data as one UDP packet to the target.
 

Protected Attributes

bool isValidHostFlag = false
 
int targetPort
 
IPAddress targetUdpAddress
 

Detailed Description

template<class UDPClass = WiFiUDP>
class midi::MidiUdp< UDPClass >

Simple UDP wrapper class which sends all packages to the same destination.

This is useful when the API asks for a stream as parameter to output data.

by Phil Schatzmann


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