Interface to enable remote subscriptions.
More...
#include <uORBCommunicator.hpp>
Interface to enable remote subscriptions.
The implementor of this interface shall manage the communication channel. It can be fastRPC or tcp or ip.
§ add_subscription()
virtual int16_t uORBCommunicator::IChannel::add_subscription |
( |
const char * |
messageName, |
|
|
int32_t |
msgRateInHz |
|
) |
| |
|
pure virtual |
Interface to notify the remote entity of a topic being unadvertised and is no longer publishing messages.
- Parameters
-
messageName | This represents the uORB message name(aka topic); This message name should be globally unique. |
- Returns
- 0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure. Interface to notify the remote entity of interest of a subscription for a message.
- Parameters
-
messageName | This represents the uORB message name; This message name should be globally unique. |
msgRate | The max rate at which the subscriber can accept the messages. |
- Returns
- 0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
§ register_handler()
§ remove_subscription()
virtual int16_t uORBCommunicator::IChannel::remove_subscription |
( |
const char * |
messageName | ) |
|
|
pure virtual |
Interface to notify the remote entity of removal of a subscription.
- Parameters
-
messageName | This represents the uORB message name; This message name should be globally unique. |
- Returns
- 0 = success; This means the messages is successfully sent to the receiver Note: This does not necessarily mean that the receiver as received it. otherwise = failure.
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
§ send_message()
virtual int16_t uORBCommunicator::IChannel::send_message |
( |
const char * |
messageName, |
|
|
int32_t |
length, |
|
|
uint8_t * |
data |
|
) |
| |
|
pure virtual |
Sends the data message over the communication link.
- Parameters
-
messageName | This represents the uORB message name; This message name should be globally unique. |
length | The length of the data buffer to be sent. |
data | The actual data to be sent. |
- Returns
- 0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
§ topic_advertised()
virtual int16_t uORBCommunicator::IChannel::topic_advertised |
( |
const char * |
messageName | ) |
|
|
pure virtual |
Interface to notify the remote entity of a topic being advertised.
- Parameters
-
messageName | This represents the uORB message name(aka topic); This message name should be globally unique. |
- Returns
- 0 = success; This means the messages is successfully sent to the receiver Note: This does not mean that the receiver as received it. otherwise = failure.
Implemented in uORB::KraitFastRpcChannel, and uORB::FastRpcChannel.
The documentation for this class was generated from the following file: