HTTPS commands with MATLAB

조회 수: 5 (최근 30일)
Fuat Kaan Diriker
Fuat Kaan Diriker 2022년 1월 25일
답변: Kojiro Saito 2022년 1월 25일
Hi all,
I am a complete WiFi noob. I have an Arduino Nano IoT with an example sketch. Using a browser, when I access to https://myIPaddress/H the LED turns on and https://myIPaddress/L turns it off. I was wondering if this command can be sent through MATLAB? Thank you!

채택된 답변

Kojiro Saito
Kojiro Saito 2022년 1월 25일
webread would be the solution.
%% For turning on
onUrl = 'https://myIPaddress/H';
data = webread(onUrl);
%% For turning off
offUrl = 'https://myIPaddress/L';
data = webread(offUrl);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by