|
arduino-midi
|
Simple UDP wrapper class which sends all packages to the same destination. More...
#include <MidiUdp.h>
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 |
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