ThingSpeak Write
R2026bPublish data to Internet of Things using ThingSpeak
Libraries:
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32F7
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32H7
Description
Use this block publish data from your target hardware to the Internet of Things using ThingSpeak™.
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.
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 runmode.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stmnucleof7lib/ThingSpeak Write"
"stmnucleoh7lib/ThingSpeak Write"
Example: add_block("stmnucleof7lib/ThingSpeak Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2021b

