iot_netcfg.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2021 Huawei Device Co., Ltd.
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef __IOT_NETCFG_H__
  16. #define __IOT_NETCFG_H__
  17. /**
  18. * @brief start net config.
  19. *
  20. * @param ap_name: the ap name
  21. * @param ssid: the buff to store the wifi ssid
  22. * @param sLen: the ssid buff size
  23. * @param pwd: the buff to store the wifi password
  24. * @param pLen: the pwd buff size
  25. *
  26. * @since 1.0
  27. * @version 1.0
  28. *
  29. * @return 0 success, -1 failed
  30. */
  31. int BOARD_NetCfgStartConfig(const char *appName, char *ssid, int sLen, char *pwd, int pLen);
  32. #endif /* __IOT_NETCFG_H__ */