SendNotify
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
x |
|
|
x |
说明:针对
函数功能
向远端engine发送Notify信息。
函数原型
Status SendNotify(const AscendString &remote_engine, const NotifyDesc ¬ify, int32_t timeout_in_millis = 1000)
参数说明
|
参数名称 |
输入/输出 |
取值说明 |
|---|---|---|
|
remote_engine |
输入 |
远端AdxlEngine的唯一标识 |
|
notify |
输入 |
需要发送的Notify内容。 内容中的name和notify_msg长度上限均为1024字符。 |
|
timeout_in_millis |
输入 |
发送超时时间,单位ms。缺省值:1000 |
调用示例
无
返回值
- SUCCESS:成功
- 其他:失败
约束说明
- 调用该接口之前,需要先调用Connect接口完成与对端的建链。
- 该接口需要和Initialize运行在同一个线程上,如需切换线程调用该接口,需要在Initialize所在线程调用“aclrtGetCurrentContext”获取context,并在新线程调用“aclrtSetCurrentContext”设置context。
父主题: ADXL接口