udp communication with esp8266 module and plotting its graph on realtime.
1 次查看(过去 30 天)
显示 更早的评论
%Creating UDP object
UDPComIn=udp('192.168.4.3','LocalPort',8822);
set(UDPComIn,'DatagramTerminateMode','on');
%Opening UDP communication
fopen(UDPComIn);
%Reading data
while 1
data=fscanf(UDPComIn);
%disp(data)
end
%Closing UDP communication
fclose(UDPComIn);
%Deleting UDP communication
delete(UDPComIn)
%CodeEnd
1 个评论
Subin Kuttappan Stellal Mary
2017-3-5
1. Can you please elaborate the use-case?
2. Are you sending UDP data from ESP8266 Wi-Fi chip and trying to receive it in MATLAB?
3. Is the code working, or are you getting any errors?
回答(1 个)
Hossam Gld
2018-12-21
hello, would you give us some explanation please ?
I need to recieve data from my arduino mega via wifi using the ESP8266-based Nodemcu, how can I realize this ? any help please
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!