iot_wifi.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_WIFI_H_
  16. #define IOT_WIFI_H_
  17. /**
  18. * @brief Initialize the board wifi
  19. * @return Returns 0 success while others failed
  20. */
  21. int BOARD_InitWifi(void);
  22. /**
  23. * @brief Connect to the wifi
  24. * @param wifiSSID Indicates the ssid of the ap
  25. * @param wifiPWD Indicates the pwd of the ap
  26. * @return Returns 0 success while others failed
  27. */
  28. int BOARD_ConnectWifi(const char *wifiSSID, const char *wifiPWD);
  29. /**
  30. * @brief Disconnect from the wifi AP
  31. * @return Returns 0 success while others failed
  32. */
  33. int BOARD_DisconnectWifi(void);
  34. int BOARD_GetWifiSignalLevel(void);
  35. #endif /* IOT_WIFI_H_ */