Just to post a reply to my own post I managed to send Hex through UDP by placing the Hex characters in an array, when calling the array I had to specifier the size of the array.
After all this it still doesn't quite do what I want it to do, but that is life, anyway here is the code.
#include <SPI.h> // needed for Arduino versions later than 0018
#include <Ethernet.h>
#include <Udp.h> // UDP library from: bjoern@cs.stanford.edu 12/30/2008
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192,168,10,200 };
unsigned int localPort = 5600; // local port to listen on
byte myArray[] = {0x08,0x18,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6f,0x00,0x0c,0x83,0x15,0x43,0x50,0x67,0x49,0x00,0x010,0x00,0x00};
// the next two variables are set when a packet is received
byte remoteIp[] = {192, 168, 10, 240}; // holds received packet's originating IP
unsigned int remotePort = 9910; // holds received packet's originating port
void setup() {
// start the Ethernet and UDP:
Ethernet.begin(mac,ip);
Udp.begin(localPort);
Serial.begin(9600);
}
void loop() {
Serial.println("sending");
Udp.sendPacket( myArray,24, remoteIp, remotePort);
delay(1000);
}
steve