資源簡介
利用Matlab的GUI設(shè)置,根據(jù)help文檔進(jìn)行設(shè)置TCPIP,在電腦連上wifi后能正常與ESP8266通信
代碼片段和文件信息
function?varargout?=?TCPIP(varargin)
%?TCPIP?MATLAB?code?for?TCPIP.fig
%??????TCPIP?by?itself?creates?a?new?TCPIP?or?raises?the?existing
%??????singleton*.
%
%??????H?=?TCPIP?returns?the?handle?to?a?new?TCPIP?or?the?handle?to
%??????the?existing?singleton*.
%
%??????TCPIP(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?TCPIP.M?with?the?given?input?arguments.
%
%??????TCPIP(‘Property‘‘Value‘...)?creates?a?new?TCPIP?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?TCPIP_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?TCPIP_OpeningFcn?via?varargin.
%
%??????*See?GUI?Options?on?GUIDE‘s?Tools?menu.??Choose?“GUI?allows?only?one
%??????instance?to?run?(singleton)“.
%
%?See?also:?GUIDE?GUIDATA?GUIHANDLES
%?Edit?the?above?text?to?modify?the?response?to?help?TCPIP
%?Last?Modified?by?GUIDE?v2.5?10-Mar-2019?21:22:10
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@TCPIP_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@TCPIP_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end
%?End?initialization?code?-?DO?NOT?EDIT
%?---?Executes?just?before?TCPIP?is?made?visible.
function?TCPIP_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?TCPIP?(see?VARARGIN)
%?Choose?default?command?line?output?for?TCPIP
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?TCPIP?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?TCPIP_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;
function?SendText_Callback(hobject?eventdata?handles)
%?hobject????handle?to?SendText?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Hints:?get(hobject‘String‘)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????27914845??2019-03-10?21:33??TCPIP\TCPIP.exe
?????文件???????20093??2019-03-10?21:25??TCPIP\TCPIP.fig
?????文件???????12884??2019-03-10?21:32??TCPIP\TCPIP.m
?????文件?????????102??2019-03-10?21:33??TCPIP\mccExcludedFiles.log
?????文件????????1406??2019-03-10?21:33??TCPIP\readme.txt
?????文件??????????12??2019-03-10?21:33??TCPIP\requiredMCRProducts.txt
?????目錄???????????0??2019-03-10?21:33??TCPIP\
評論
共有 條評論