I am receiving a UDP packet with a structure written in C and it looks like:
[code]struct myStruct
{
uint32_t structID;
uint32_t lastDate;
uint32_t lastTime;
double direction[3];
}[/code]
I managed to receive the datagram and display the data with a UDPSocket. And I defined a structure with the same fields and byte lengths. But how can I add the received data to my (local) struct in xojo?
[code]Dim udpDataGram As DataGram
Dim myStruct As UDPStruct //my defined structure with same fields
Thank you for the answer. I can compile an run the application and see the data.
But something is strange: first characters seems to be the hostname in udpDataGram.Data. I don’t send the hostname in the data packet. I have to investigate a little bit more (wireshark)