ThingSpeak Read
Add-On Required: This feature requires the Embedded Coder Support Package for STMicroelectronics STM32 Processors add-on.
Libraries:
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32L475VG-Discovery (B-L475E-IOT01A)
Simulink Coder Support Package for STMicroelectronics Nucleo Boards /
STM32F7
Simulink Coder Support Package for STMicroelectronics Nucleo Boards /
STM32H7
Simulink Support Package for Arduino Hardware /
Ethernet Shield
Description
The ThingSpeak Read block reads data from the ThingSpeak™ channel on the ThingSpeak.com website.
ThingSpeak is an IoT analytics platform service that allows you to aggregate, visualize, and analyze live data streams in the cloud. You can send data to ThingSpeak from your devices, create instant visualizations of live data, and send alerts using web services. With MATLAB® analytics inside ThingSpeak, you can write and execute MATLAB code to perform preprocessing, visualizations, and analyses.
For more information on how to use ThingSpeak, see Apps, Plugins, or Tutorials.
Examples
Limitations
The ThingSpeak Write and ThingSpeak Read blocks take a minimum of 700 ms for execution when you run the model in external mode. If the overall model execution time when you run the model in external mode exceeds 2 s, there can be sporadic disconnects. There is no such limitation if you run the model in the
Build, load and run
mode.When using the WiFi TCP Send, WiFi TCP Receive, ThingSpeak Read, and ThingSpeak Write blocks in a model, the blocks must have the same sample time as the driver code is nonreentrant.
Ports
Output
Parameters
Extended Capabilities
Version History
Introduced in R2021a