Use this app to simulate an IoT device - both Analog Input and Digital Input - and send the data to ThingSpeak (https://thingspeak.com). Customize the app with your own ThingSpeak channel settings. View the ThingSpeak channel 222219 (https://thingspeak.com/channels/222219) to see the incoming data. Visit https://thingspeak.com and sign in with your MathWorks account. Create a new Channel by selecting Channels, My Channels, and then New Channel. Enable two fields and name them Analog Input and Digital Input.
Hans Scharler (2021). Virtual IoT Device (https://www.mathworks.com/matlabcentral/fileexchange/61409-virtual-iot-device), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
I got this error
Error using Virtual_IoT_Device/SendtoThingSpeakButtonPushed (line 30)
Undefined function 'getThingSpeakURL' for input arguments of type 'cell'.
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.
I am getting this Error in MATLAB 2013a. Is it not compatible?
Error in appinstall.internal.runapp>runcorrectversion (line 35)
appobj = runapp13a(appinstalldir);
Error in appinstall.internal.runapp (line 17)
out = runcorrectversion(appmetadata, appentrypoint, appinstalldir);
Error using nargout
Function Virtual_IoT_Device does not exist.
Error in VirtualIoTDeviceApp/startApp (line 57)
if nargout(@Virtual_IoT_Device) == 0
Error in VirtualIoTDeviceApp (line 37)
startApp(obj)
Error in appinstall.internal.runapp>execute (line 69)
out = evalin('caller', [script ';']);
Error in appinstall.internal.runapp>runapp13a (line 51)
outobj = execute(fullfile(appinstalldir, [wrapperfile 'App.m']));
Error in appinstall.internal.runapp>runcorrectversion (line 35)
appobj = runapp13a(appinstalldir);
Error in appinstall.internal.runapp (line 17)
out = runcorrectversion(appmetadata, appentrypoint, appinstalldir);