How to receive UDP data from iPhone?
Afficher commentaires plus anciens
Hi guys, I am trying to implement a program to receive UDP data from my iPhone.
I am using an app called Sensor Streamer which allows you to enter a desired ip address and port, and then commence data streaming. It gives the data packet format as well which is up to 110 bytes.

I am using the Matlab UDPReceiver object to setup my connection, and then I will eventually graph this data in realtime.
I am using the below code and cant work out why I am not receiving any data?! I know its likely to be an issue with network configuration but ive used cmd>>ipconfig to find my ipv4 address and have tried many ports. IPv4: 10.0.0.43
%%%UDP Receive Code %%%
hudpr = dsp.UDPReceiver('LocalIPPort',9090,'RemoteIPAddress','10.0.0.43','ReceiveBufferSize',1000);
while 1
dataReceived = step(hudpr);
disp(dataReceived);
end
Réponses (0)
Catégories
En savoir plus sur MATLAB Mobile dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!