ESPSoftAPTransport
public class ESPSoftAPTransport : ESPCommunicable
The ESPSoftAPTransport class conforms and implememnt methods of ESPCommunicable protocol.
This class provides methods for sending configuration and session related data to ESPDevice.
-
Instance of
ESPUtility.Declaration
Swift
var utility: ESPUtility -
Undocumented
Declaration
Swift
var session: URLSession -
Check device configuration status.
Declaration
Swift
func isDeviceConfigured() -> BoolReturn Value
Yesif device is configured. -
URL fo sending data to device.
Declaration
Swift
var baseUrl: String -
Create HTTP implementation of Transport protocol
Declaration
Swift
public init(baseUrl: String)Parameters
baseUrlbase URL for the HTTP endpoints
-
HTTP implementation of the Transport protocol.
Declaration
Swift
func SendSessionData(data: Data, sessionPath: String?, completionHandler: @escaping (Data?, Error?) -> Swift.Void)Parameters
dataData to be sent.
sessionPathPath for sending session related data.
completionHandlerHandler called when data is successfully sent and response received.
-
HTTP implementation of the Transport protocol
Declaration
Swift
public func SendConfigData(path: String, data: Data, completionHandler: @escaping (Data?, Error?) -> Swift.Void)Parameters
pathEndpoint of base url.
dataData to be sent.
completionHandlerHandler called when data is successfully sent and response received.
-
Declaration
Swift
func disconnect()
ESPSoftAPTransport Class Reference