NNG Receive
R2026bReceive data through nanomsg next gen (NNG) using publish/subscribe protocol
Since R2023a
Libraries:
Raspberry Pi Blockset /
Communication
Description
Use the NNG Receive block to receive data from the publisher for the specified uniform resource locator (URL). The block uses a publish/subscribe protocol for all inter process communications. In the publish/subscribe protocol, each publisher that wants to send data publishes them on a certain URL while, each subscriber that wants to receive data subscribes to the same URL.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Examples
Ports
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.
"raspberrypiCommlib/NNG Receive"
Example: add_block("raspberrypiCommlib/NNG Receive","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2023a
