UNPKG

esp-ble-prov

Version:
1,258 lines (1,044 loc) 82.8 kB
import * as $protobuf from 'protobufjs'; /** Namespace constants. */ declare namespace constants { /** Status enum. */ enum Status { Success = 0, InvalidSecScheme = 1, InvalidProto = 2, TooManySessions = 3, InvalidArgument = 4, InternalError = 5, CryptoError = 6, InvalidSession = 7 } /** WifiStationState enum. */ enum WifiStationState { Connected = 0, Connecting = 1, Disconnected = 2, ConnectionFailed = 3 } /** WifiConnectFailedReason enum. */ enum WifiConnectFailedReason { AuthError = 0, NetworkNotFound = 1 } /** Properties of a WifiAttemptFailed. */ interface IWifiAttemptFailed { /** WifiAttemptFailed attemptsRemaining */ attemptsRemaining?: (number|null); } /** Represents a WifiAttemptFailed. */ class WifiAttemptFailed implements IWifiAttemptFailed { /** * Constructs a new WifiAttemptFailed. * @param [properties] Properties to set */ constructor(properties?: constants.IWifiAttemptFailed); /** WifiAttemptFailed attemptsRemaining. */ public attemptsRemaining: number; /** * Creates a new WifiAttemptFailed instance using the specified properties. * @param [properties] Properties to set * @returns WifiAttemptFailed instance */ public static create(properties?: constants.IWifiAttemptFailed): constants.WifiAttemptFailed; /** * Encodes the specified WifiAttemptFailed message. Does not implicitly {@link constants.WifiAttemptFailed.verify|verify} messages. * @param message WifiAttemptFailed message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: constants.IWifiAttemptFailed, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified WifiAttemptFailed message, length delimited. Does not implicitly {@link constants.WifiAttemptFailed.verify|verify} messages. * @param message WifiAttemptFailed message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: constants.IWifiAttemptFailed, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a WifiAttemptFailed message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns WifiAttemptFailed * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): constants.WifiAttemptFailed; /** * Decodes a WifiAttemptFailed message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns WifiAttemptFailed * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): constants.WifiAttemptFailed; /** * Verifies a WifiAttemptFailed message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a WifiAttemptFailed message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns WifiAttemptFailed */ public static fromObject(object: { [k: string]: any }): constants.WifiAttemptFailed; /** * Creates a plain object from a WifiAttemptFailed message. Also converts values to other types if specified. * @param message WifiAttemptFailed * @param [options] Conversion options * @returns Plain object */ public static toObject(message: constants.WifiAttemptFailed, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this WifiAttemptFailed to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for WifiAttemptFailed * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** WifiAuthMode enum. */ enum WifiAuthMode { Open = 0, WEP = 1, WPA_PSK = 2, WPA2_PSK = 3, WPA_WPA2_PSK = 4, WPA2_ENTERPRISE = 5, WPA3_PSK = 6, WPA2_WPA3_PSK = 7 } /** Properties of a WifiConnectedState. */ interface IWifiConnectedState { /** WifiConnectedState ip4Addr */ ip4Addr?: (string|null); /** WifiConnectedState authMode */ authMode?: (constants.WifiAuthMode|null); /** WifiConnectedState ssid */ ssid?: (Uint8Array|null); /** WifiConnectedState bssid */ bssid?: (Uint8Array|null); /** WifiConnectedState channel */ channel?: (number|null); } /** Represents a WifiConnectedState. */ class WifiConnectedState implements IWifiConnectedState { /** * Constructs a new WifiConnectedState. * @param [properties] Properties to set */ constructor(properties?: constants.IWifiConnectedState); /** WifiConnectedState ip4Addr. */ public ip4Addr: string; /** WifiConnectedState authMode. */ public authMode: constants.WifiAuthMode; /** WifiConnectedState ssid. */ public ssid: Uint8Array; /** WifiConnectedState bssid. */ public bssid: Uint8Array; /** WifiConnectedState channel. */ public channel: number; /** * Creates a new WifiConnectedState instance using the specified properties. * @param [properties] Properties to set * @returns WifiConnectedState instance */ public static create(properties?: constants.IWifiConnectedState): constants.WifiConnectedState; /** * Encodes the specified WifiConnectedState message. Does not implicitly {@link constants.WifiConnectedState.verify|verify} messages. * @param message WifiConnectedState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: constants.IWifiConnectedState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified WifiConnectedState message, length delimited. Does not implicitly {@link constants.WifiConnectedState.verify|verify} messages. * @param message WifiConnectedState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: constants.IWifiConnectedState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a WifiConnectedState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns WifiConnectedState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): constants.WifiConnectedState; /** * Decodes a WifiConnectedState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns WifiConnectedState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): constants.WifiConnectedState; /** * Verifies a WifiConnectedState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a WifiConnectedState message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns WifiConnectedState */ public static fromObject(object: { [k: string]: any }): constants.WifiConnectedState; /** * Creates a plain object from a WifiConnectedState message. Also converts values to other types if specified. * @param message WifiConnectedState * @param [options] Conversion options * @returns Plain object */ public static toObject(message: constants.WifiConnectedState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this WifiConnectedState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for WifiConnectedState * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Namespace config. */ declare namespace config { /** Properties of a CmdGetStatus. */ interface ICmdGetStatus { } /** Represents a CmdGetStatus. */ class CmdGetStatus implements ICmdGetStatus { /** * Constructs a new CmdGetStatus. * @param [properties] Properties to set */ constructor(properties?: config.ICmdGetStatus); /** * Creates a new CmdGetStatus instance using the specified properties. * @param [properties] Properties to set * @returns CmdGetStatus instance */ public static create(properties?: config.ICmdGetStatus): config.CmdGetStatus; /** * Encodes the specified CmdGetStatus message. Does not implicitly {@link config.CmdGetStatus.verify|verify} messages. * @param message CmdGetStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.ICmdGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CmdGetStatus message, length delimited. Does not implicitly {@link config.CmdGetStatus.verify|verify} messages. * @param message CmdGetStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.ICmdGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CmdGetStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CmdGetStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.CmdGetStatus; /** * Decodes a CmdGetStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CmdGetStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.CmdGetStatus; /** * Verifies a CmdGetStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CmdGetStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CmdGetStatus */ public static fromObject(object: { [k: string]: any }): config.CmdGetStatus; /** * Creates a plain object from a CmdGetStatus message. Also converts values to other types if specified. * @param message CmdGetStatus * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.CmdGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CmdGetStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CmdGetStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RespGetStatus. */ interface IRespGetStatus { /** RespGetStatus status */ status?: (constants.Status|null); /** RespGetStatus staState */ staState?: (constants.WifiStationState|null); /** RespGetStatus failReason */ failReason?: (constants.WifiConnectFailedReason|null); /** RespGetStatus connected */ connected?: (constants.IWifiConnectedState|null); /** RespGetStatus attemptFailed */ attemptFailed?: (constants.IWifiAttemptFailed|null); } /** Represents a RespGetStatus. */ class RespGetStatus implements IRespGetStatus { /** * Constructs a new RespGetStatus. * @param [properties] Properties to set */ constructor(properties?: config.IRespGetStatus); /** RespGetStatus status. */ public status: constants.Status; /** RespGetStatus staState. */ public staState: constants.WifiStationState; /** RespGetStatus failReason. */ public failReason?: (constants.WifiConnectFailedReason|null); /** RespGetStatus connected. */ public connected?: (constants.IWifiConnectedState|null); /** RespGetStatus attemptFailed. */ public attemptFailed?: (constants.IWifiAttemptFailed|null); /** RespGetStatus state. */ public state?: ("failReason"|"connected"|"attemptFailed"); /** * Creates a new RespGetStatus instance using the specified properties. * @param [properties] Properties to set * @returns RespGetStatus instance */ public static create(properties?: config.IRespGetStatus): config.RespGetStatus; /** * Encodes the specified RespGetStatus message. Does not implicitly {@link config.RespGetStatus.verify|verify} messages. * @param message RespGetStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.IRespGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RespGetStatus message, length delimited. Does not implicitly {@link config.RespGetStatus.verify|verify} messages. * @param message RespGetStatus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.IRespGetStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RespGetStatus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RespGetStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.RespGetStatus; /** * Decodes a RespGetStatus message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns RespGetStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.RespGetStatus; /** * Verifies a RespGetStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a RespGetStatus message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns RespGetStatus */ public static fromObject(object: { [k: string]: any }): config.RespGetStatus; /** * Creates a plain object from a RespGetStatus message. Also converts values to other types if specified. * @param message RespGetStatus * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.RespGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RespGetStatus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for RespGetStatus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CmdSetConfig. */ interface ICmdSetConfig { /** CmdSetConfig ssid */ ssid?: (Uint8Array|null); /** CmdSetConfig passphrase */ passphrase?: (Uint8Array|null); /** CmdSetConfig bssid */ bssid?: (Uint8Array|null); /** CmdSetConfig channel */ channel?: (number|null); } /** Represents a CmdSetConfig. */ class CmdSetConfig implements ICmdSetConfig { /** * Constructs a new CmdSetConfig. * @param [properties] Properties to set */ constructor(properties?: config.ICmdSetConfig); /** CmdSetConfig ssid. */ public ssid: Uint8Array; /** CmdSetConfig passphrase. */ public passphrase: Uint8Array; /** CmdSetConfig bssid. */ public bssid: Uint8Array; /** CmdSetConfig channel. */ public channel: number; /** * Creates a new CmdSetConfig instance using the specified properties. * @param [properties] Properties to set * @returns CmdSetConfig instance */ public static create(properties?: config.ICmdSetConfig): config.CmdSetConfig; /** * Encodes the specified CmdSetConfig message. Does not implicitly {@link config.CmdSetConfig.verify|verify} messages. * @param message CmdSetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.ICmdSetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CmdSetConfig message, length delimited. Does not implicitly {@link config.CmdSetConfig.verify|verify} messages. * @param message CmdSetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.ICmdSetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CmdSetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CmdSetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.CmdSetConfig; /** * Decodes a CmdSetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CmdSetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.CmdSetConfig; /** * Verifies a CmdSetConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CmdSetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CmdSetConfig */ public static fromObject(object: { [k: string]: any }): config.CmdSetConfig; /** * Creates a plain object from a CmdSetConfig message. Also converts values to other types if specified. * @param message CmdSetConfig * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.CmdSetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CmdSetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CmdSetConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RespSetConfig. */ interface IRespSetConfig { /** RespSetConfig status */ status?: (constants.Status|null); } /** Represents a RespSetConfig. */ class RespSetConfig implements IRespSetConfig { /** * Constructs a new RespSetConfig. * @param [properties] Properties to set */ constructor(properties?: config.IRespSetConfig); /** RespSetConfig status. */ public status: constants.Status; /** * Creates a new RespSetConfig instance using the specified properties. * @param [properties] Properties to set * @returns RespSetConfig instance */ public static create(properties?: config.IRespSetConfig): config.RespSetConfig; /** * Encodes the specified RespSetConfig message. Does not implicitly {@link config.RespSetConfig.verify|verify} messages. * @param message RespSetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.IRespSetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RespSetConfig message, length delimited. Does not implicitly {@link config.RespSetConfig.verify|verify} messages. * @param message RespSetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.IRespSetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RespSetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RespSetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.RespSetConfig; /** * Decodes a RespSetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns RespSetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.RespSetConfig; /** * Verifies a RespSetConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a RespSetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns RespSetConfig */ public static fromObject(object: { [k: string]: any }): config.RespSetConfig; /** * Creates a plain object from a RespSetConfig message. Also converts values to other types if specified. * @param message RespSetConfig * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.RespSetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RespSetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for RespSetConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CmdApplyConfig. */ interface ICmdApplyConfig { } /** Represents a CmdApplyConfig. */ class CmdApplyConfig implements ICmdApplyConfig { /** * Constructs a new CmdApplyConfig. * @param [properties] Properties to set */ constructor(properties?: config.ICmdApplyConfig); /** * Creates a new CmdApplyConfig instance using the specified properties. * @param [properties] Properties to set * @returns CmdApplyConfig instance */ public static create(properties?: config.ICmdApplyConfig): config.CmdApplyConfig; /** * Encodes the specified CmdApplyConfig message. Does not implicitly {@link config.CmdApplyConfig.verify|verify} messages. * @param message CmdApplyConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.ICmdApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CmdApplyConfig message, length delimited. Does not implicitly {@link config.CmdApplyConfig.verify|verify} messages. * @param message CmdApplyConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.ICmdApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CmdApplyConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CmdApplyConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.CmdApplyConfig; /** * Decodes a CmdApplyConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CmdApplyConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.CmdApplyConfig; /** * Verifies a CmdApplyConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CmdApplyConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CmdApplyConfig */ public static fromObject(object: { [k: string]: any }): config.CmdApplyConfig; /** * Creates a plain object from a CmdApplyConfig message. Also converts values to other types if specified. * @param message CmdApplyConfig * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.CmdApplyConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CmdApplyConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CmdApplyConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RespApplyConfig. */ interface IRespApplyConfig { /** RespApplyConfig status */ status?: (constants.Status|null); } /** Represents a RespApplyConfig. */ class RespApplyConfig implements IRespApplyConfig { /** * Constructs a new RespApplyConfig. * @param [properties] Properties to set */ constructor(properties?: config.IRespApplyConfig); /** RespApplyConfig status. */ public status: constants.Status; /** * Creates a new RespApplyConfig instance using the specified properties. * @param [properties] Properties to set * @returns RespApplyConfig instance */ public static create(properties?: config.IRespApplyConfig): config.RespApplyConfig; /** * Encodes the specified RespApplyConfig message. Does not implicitly {@link config.RespApplyConfig.verify|verify} messages. * @param message RespApplyConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.IRespApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RespApplyConfig message, length delimited. Does not implicitly {@link config.RespApplyConfig.verify|verify} messages. * @param message RespApplyConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.IRespApplyConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RespApplyConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RespApplyConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.RespApplyConfig; /** * Decodes a RespApplyConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns RespApplyConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.RespApplyConfig; /** * Verifies a RespApplyConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a RespApplyConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns RespApplyConfig */ public static fromObject(object: { [k: string]: any }): config.RespApplyConfig; /** * Creates a plain object from a RespApplyConfig message. Also converts values to other types if specified. * @param message RespApplyConfig * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.RespApplyConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RespApplyConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for RespApplyConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** WiFiConfigMsgType enum. */ enum WiFiConfigMsgType { TypeCmdGetStatus = 0, TypeRespGetStatus = 1, TypeCmdSetConfig = 2, TypeRespSetConfig = 3, TypeCmdApplyConfig = 4, TypeRespApplyConfig = 5 } /** Properties of a WiFiConfigPayload. */ interface IWiFiConfigPayload { /** WiFiConfigPayload msg */ msg?: (config.WiFiConfigMsgType|null); /** WiFiConfigPayload cmdGetStatus */ cmdGetStatus?: (config.ICmdGetStatus|null); /** WiFiConfigPayload respGetStatus */ respGetStatus?: (config.IRespGetStatus|null); /** WiFiConfigPayload cmdSetConfig */ cmdSetConfig?: (config.ICmdSetConfig|null); /** WiFiConfigPayload respSetConfig */ respSetConfig?: (config.IRespSetConfig|null); /** WiFiConfigPayload cmdApplyConfig */ cmdApplyConfig?: (config.ICmdApplyConfig|null); /** WiFiConfigPayload respApplyConfig */ respApplyConfig?: (config.IRespApplyConfig|null); } /** Represents a WiFiConfigPayload. */ class WiFiConfigPayload implements IWiFiConfigPayload { /** * Constructs a new WiFiConfigPayload. * @param [properties] Properties to set */ constructor(properties?: config.IWiFiConfigPayload); /** WiFiConfigPayload msg. */ public msg: config.WiFiConfigMsgType; /** WiFiConfigPayload cmdGetStatus. */ public cmdGetStatus?: (config.ICmdGetStatus|null); /** WiFiConfigPayload respGetStatus. */ public respGetStatus?: (config.IRespGetStatus|null); /** WiFiConfigPayload cmdSetConfig. */ public cmdSetConfig?: (config.ICmdSetConfig|null); /** WiFiConfigPayload respSetConfig. */ public respSetConfig?: (config.IRespSetConfig|null); /** WiFiConfigPayload cmdApplyConfig. */ public cmdApplyConfig?: (config.ICmdApplyConfig|null); /** WiFiConfigPayload respApplyConfig. */ public respApplyConfig?: (config.IRespApplyConfig|null); /** WiFiConfigPayload payload. */ public payload?: ("cmdGetStatus"|"respGetStatus"|"cmdSetConfig"|"respSetConfig"|"cmdApplyConfig"|"respApplyConfig"); /** * Creates a new WiFiConfigPayload instance using the specified properties. * @param [properties] Properties to set * @returns WiFiConfigPayload instance */ public static create(properties?: config.IWiFiConfigPayload): config.WiFiConfigPayload; /** * Encodes the specified WiFiConfigPayload message. Does not implicitly {@link config.WiFiConfigPayload.verify|verify} messages. * @param message WiFiConfigPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: config.IWiFiConfigPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified WiFiConfigPayload message, length delimited. Does not implicitly {@link config.WiFiConfigPayload.verify|verify} messages. * @param message WiFiConfigPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: config.IWiFiConfigPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a WiFiConfigPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns WiFiConfigPayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): config.WiFiConfigPayload; /** * Decodes a WiFiConfigPayload message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns WiFiConfigPayload * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): config.WiFiConfigPayload; /** * Verifies a WiFiConfigPayload message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a WiFiConfigPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns WiFiConfigPayload */ public static fromObject(object: { [k: string]: any }): config.WiFiConfigPayload; /** * Creates a plain object from a WiFiConfigPayload message. Also converts values to other types if specified. * @param message WiFiConfigPayload * @param [options] Conversion options * @returns Plain object */ public static toObject(message: config.WiFiConfigPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this WiFiConfigPayload to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for WiFiConfigPayload * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Namespace scan. */ declare namespace scan { /** Properties of a CmdScanStart. */ interface ICmdScanStart { /** CmdScanStart blocking */ blocking?: (boolean|null); /** CmdScanStart passive */ passive?: (boolean|null); /** CmdScanStart groupChannels */ groupChannels?: (number|null); /** CmdScanStart periodMs */ periodMs?: (number|null); } /** Represents a CmdScanStart. */ class CmdScanStart implements ICmdScanStart { /** * Constructs a new CmdScanStart. * @param [properties] Properties to set */ constructor(properties?: scan.ICmdScanStart); /** CmdScanStart blocking. */ public blocking: boolean; /** CmdScanStart passive. */ public passive: boolean; /** CmdScanStart groupChannels. */ public groupChannels: number; /** CmdScanStart periodMs. */ public periodMs: number; /** * Creates a new CmdScanStart instance using the specified properties. * @param [properties] Properties to set * @returns CmdScanStart instance */ public static create(properties?: scan.ICmdScanStart): scan.CmdScanStart; /** * Encodes the specified CmdScanStart message. Does not implicitly {@link scan.CmdScanStart.verify|verify} messages. * @param message CmdScanStart message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: scan.ICmdScanStart, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CmdScanStart message, length delimited. Does not implicitly {@link scan.CmdScanStart.verify|verify} messages. * @param message CmdScanStart message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: scan.ICmdScanStart, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CmdScanStart message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CmdScanStart * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): scan.CmdScanStart; /** * Decodes a CmdScanStart message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CmdScanStart * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): scan.CmdScanStart; /** * Verifies a CmdScanStart message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CmdScanStart message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CmdScanStart */ public static fromObject(object: { [k: string]: any }): scan.CmdScanStart; /** * Creates a plain object from a CmdScanStart message. Also converts values to other types if specified. * @param message CmdScanStart * @param [options] Conversion options * @returns Plain object */ public static toObject(message: scan.CmdScanStart, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CmdScanStart to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CmdScanStart * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RespScanStart. */ interface IRespScanStart { } /** Represents a RespScanStart. */ class RespScanStart implements IRespScanStart { /** * Constructs a new RespScanStart. * @param [properties] Properties to set */ constructor(properties?: scan.IRespScanStart); /** * Creates a new RespScanStart instance using the specified properties. * @param [properties] Properties to set * @returns RespScanStart instance */ public static create(properties?: scan.IRespScanStart): scan.RespScanStart; /** * Encodes the specified RespScanStart message. Does not implicitly {@link scan.RespScanStart.verify|verify} messages. * @param message RespScanStart message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: scan.IRespScanStart, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RespScanStart message, length delimited. Does not implicitly {@link scan.RespScanStart.verify|verify} messages. * @param message RespScanStart message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: scan.IRespScanStart, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RespScanStart message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RespScanStart * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): scan.RespScanStart; /** * Decodes a RespScanStart message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns RespScanStart * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): scan.RespScanStart; /** * Verifies a RespScanStart message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a RespScanStart message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns RespScanStart */ public static fromObject(object: { [k: string]: any }): scan.RespScanStart; /** * Creates a plain object from a RespScanStart message. Also converts values to other types if specified. * @param message RespScanStart * @param [options] Conversion options * @returns Plain object */ public static toObject(message: scan.RespScanStart, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RespScanStart to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for RespScanStart * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CmdScanStatus. */ interface ICmdScanStatus { } /** Represents a CmdScanStatus. */ class CmdScanStatus implements ICmdScanStatus { /** * Constructs a new CmdScanStatus. * @param [properties] Properties to set */ constructor(properties?: scan.ICmdScanStatus); /** * Creates a new CmdScanStatus instance using the specified properties. * @param [properties] Properties to set * @returns CmdScanStatus instance */ public static create(properties?: scan.ICmdScanStatus): scan.CmdScanStatus; /** * Encodes the