HTTPS commands with MATLAB
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fuat Kaan Diriker
le 25 Jan 2022
Réponse apportée : Kojiro Saito
le 25 Jan 2022
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!
0 commentaires
Réponse acceptée
Kojiro Saito
le 25 Jan 2022
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!