HTTP Client
R2026bLibraries:
Raspberry Pi Blockset /
Network
Description
Use the HTTP Client block to send and receive data from the remote server using the HTTP protocol. You can send data in the text or JSON formats. The Raspberry Pi® hardware acts as a client and can send HTTP requests to the remote server over a uniform resource locator (URL) connection. The block supports the HTTP GET, POST, and PUT methods.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Examples
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.
"raspberrypiNetworklib/HTTP Client"
Example: add_block("raspberrypiNetworklib/HTTP Client","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2023b
