![]() |
同步阻塞发布消息
#include "MsgTopic.hpp"
静态 Public 成员函数 | |
| static ErrCodeE | Publish (uint32_t topic, const char *data, int32_t size, int32_t timeoutMs=1000) |
| 发送同步阻塞消息,比较耗时耗资源,尽量使用MsgTopicPublisherAsync异步请求 更多... | |
|
static |
| topic | [in] 消息的topic |
| data | [in] topic携带的数据 |
| size | [in] topic携带数据的大小 |
| timeoutMs | [in] 超时时间,默认1s |