HTTP Client
R2026bLibraries:
Simulink Support Package for Android Devices /
Communication
Description
Add-On Required: This feature requires the Simulink Support Package for Android Devices add-on.
Use the HTTP Client block to send and receive data such as text from the remote server using the HTTP protocol. You can also use the block to send images to the remote server. The Android® device acts as a client and can send HTTP requests to the remote server over a uniform resource locator (URL) connection. The block supports HTTP GET, POST, and PUT methods.
Note
You can use only one HTTP Client block in a Simulink® model and deploy the model on your Android device.
Ports
Input
Output
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.
"androidcommunicationlib/HTTP Client"
Example: add_block("androidcommunicationlib/HTTP Client","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2023a