!798 【轻量级 PR】:修改README文件中JoinLNN参数错误

Merge pull request !798 from Jerry/N/A
This commit is contained in:
openharmony_ci 2022-07-01 06:31:32 +00:00 committed by Gitee
commit 6e129942e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -149,7 +149,7 @@
typedef void (*OnJoinLNNResult)(ConnectionAddr *addr, const char *networkId, int32_t retCode);
// 发起组网请求
int32_t JoinLNN(ConnectionAddr *target, OnJoinLNNResult cb);
int32_t JoinLNN(const char *pkgName, ConnectionAddr *target, OnJoinLNNResult cb);
```
2. 等待组网结果JoinLNN\(\)返回成功表示软总线接受了组网请求组网结果通过回调函数通知业务组网回调函数中addr参数内容和JoinLNN\(\)的入参互相匹配retCode如果为0表示组网成功此时networkId为有效值后续传输、退网等接口均需使用该参数retCode如果不为0表示组网失败此时networkId为无效值。