hilink_bt_netcfg_api.h 702 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
  3. * Description: 蓝牙SDK配网API头文件
  4. */
  5. #ifndef HILINK_BT_NETCFG_API_H
  6. #define HILINK_BT_NETCFG_API_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef int (*HILINK_BT_ProcessNetCfgCb)(const unsigned char *in, unsigned int inLen,
  11. unsigned char *out, unsigned int outLen);
  12. /* 启动配网 */
  13. int HILINK_BT_StartNetCfg(void);
  14. /* 停止配网 */
  15. int HILINK_BT_StopNetCfg(void);
  16. /* 通知配网状态 */
  17. int HILINK_BT_NotifyNetCfgStatus(int status);
  18. /* 注册接收到配网信息的处理函数 */
  19. int HILINK_BT_RegisterNetCfgDataCb(HILINK_BT_ProcessNetCfgCb callback);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif