ESPUtility
class ESPUtility
The ‘ESPUtility’ class store and manages necessary information related to Transport layer.
-
The base url for sending HTTP request to softAp ESPDevice.
Declaration
Swift
static let baseUrl: String
-
The path used for sending configuration related data to ESPDevice.
Declaration
Swift
var configPath: String
-
The path used for fetching ESPDevice versions and other informations.
Declaration
Swift
var versionPath: String
-
The path used for giving scan Wi-Fi scan command to ESPDevice and fetching related information.
Declaration
Swift
var scanPath: String
-
The path used to esptablish session with an ESPDevice.
Declaration
Swift
var sessionPath: String
-
Flag indicating configuration status of peripheral device.
Declaration
Swift
var peripheralConfigured: Bool
-
Store session characterisitic of connected ble device.
Declaration
Swift
var sessionCharacteristic: CBCharacteristic!
-
Stores path and associated charactersitic in dictionary format.
Declaration
Swift
var configUUIDMap: [String : CBCharacteristic]
-
Stores device version information.
Declaration
Swift
var deviceVersionInfo: NSDictionary?
-
Process and store descriptor values read from BLE devices.
Declaration
Swift
func processDescriptor(descriptor: CBDescriptor)
Parameters
descriptor
The CBDescriptor of a BLE characteristic.