1/*
2 * Copyright (c) 2021-2022 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
16export default class constants {
17  static DEFAULT_WIFI_OPEN_STATUS: boolean = false;
18  static DEFAULT_WIFI_NAME: string = 'WLAN';
19  static DEFAULT_WIFI_INFO: number = 0;
20  static DEFAULT_WIFI_STATUS: boolean = false;
21  static WIFI_SIGNAL_NO: number = 0;
22  static WIFI_SIGNAL_LOW: number = 1;
23  static WIFI_SIGNAL_MID: number = 2;
24  static WIFI_SIGNAL_HIGH: number = 3;
25  static WIFI_SIGNAL_FULL: number = 4;
26}
27
28export enum WifiState {
29  STATE_OFF = 0,
30  STATE_ON = 1,
31  STATE_TURNING_ON = 2,
32  STATE_TURNING_OFF = 3
33}
34
35export enum WifiConnectionState {
36  DISCONNECTED = 0,
37  CONNECTED = 1
38}
39