return ok status code and free buffer
This commit is contained in:
parent
077b4d5c89
commit
95c87919a8
@ -120,4 +120,7 @@ uint8_t realtimeBrodacast(IPAddress client, uint16_t busLength, byte *rgbwData)
|
|||||||
|
|
||||||
channel += packetSize;
|
channel += packetSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(buffer);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
12
wled00/DDP.h
12
wled00/DDP.h
@ -2,3 +2,15 @@
|
|||||||
|
|
||||||
#define DDP_PUSH_FLAG 0x01
|
#define DDP_PUSH_FLAG 0x01
|
||||||
#define DDP_TIMECODE_FLAG 0x10
|
#define DDP_TIMECODE_FLAG 0x10
|
||||||
|
|
||||||
|
//
|
||||||
|
// Send real time DDP UDP updates to the specified client
|
||||||
|
//
|
||||||
|
// client - the IP address to send to
|
||||||
|
// busLength - the number of pixels
|
||||||
|
// rgbwData - a buffer of at least busLength*4 bytes long
|
||||||
|
//
|
||||||
|
// Returns
|
||||||
|
// 0 - Ok
|
||||||
|
// 1 - could not allocate buffer
|
||||||
|
uint8_t realtimeBrodacast(IPAddress client, uint16_t busLength, byte *rgbwData);
|
||||||
|
Loading…
Reference in New Issue
Block a user