1 /* 2 * Copyright (C) 2015-2018 Alibaba Group Holding Limited 3 */ 4 5 #ifndef __AWSS_CONNECT_AP_H__ 6 #define __AWSS_CONNECT_AP_H__ 7 8 #include "awss_log.h" 9 10 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */ 11 extern "C" { 12 #endif 13 #define AWSS_TOKEN_LEN (16) 14 15 int awss_complete_token(char passwd[HAL_MAX_PASSWD_LEN], uint8_t *bssid, 16 uint8_t bssid_len, uint8_t *token_in, uint8_t token_len, 17 uint8_t token_out[AWSS_TOKEN_LEN]); 18 19 int awss_connect(char ssid[HAL_MAX_SSID_LEN], char passwd[HAL_MAX_PASSWD_LEN], 20 uint8_t *bssid, uint8_t bssid_len, uint8_t *token, 21 uint8_t token_len); 22 23 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */ 24 } 25 #endif 26 27 #endif 28