udp communication with esp8266 module and plotting its graph on realtime.

5 Ansichten (letzte 30 Tage)
sajad mulk
sajad mulk am 27 Feb. 2017
Beantwortet: Hossam Gld am 21 Dez. 2018
%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 Kommentar
Subin Kuttappan Stellal Mary
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?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Hossam Gld
Hossam Gld am 21 Dez. 2018
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

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by