How to receive UDP data from iPhone?

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

Answers (0)

Categories

Find more on MATLAB Mobile in Help Center and File Exchange

Asked:

on 18 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!