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!

 Respuesta aceptada

Kojiro Saito
Kojiro Saito el 25 de En. de 2022

0 votos

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);

Más respuestas (0)

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de En. de 2022

Respondida:

el 25 de En. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by