ESPCommunicable
protocol ESPCommunicable
Transport interface which abstracts the transport layer to send messages to the ESPDevice.
-
Instance of ‘ESPUtility’ class.
Declaration
Swift
var utility: ESPUtility { get } -
Send data related to session establishment.
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 is received.
-
Send data related to device configurations.
Declaration
Swift
func SendConfigData(path: String, data: Data, completionHandler: @escaping (Data?, Error?) -> Swift.Void)Parameters
pathEndpoint of base url.
dataConfig data to be sent.
completionHandlerHandler called when data is successfully sent and response is received.
-
Check device configuration status.
Declaration
Swift
func isDeviceConfigured() -> BoolReturn Value
Yesif device is configured. -
Disconnect
ESPDevice.Declaration
Swift
func disconnect()
ESPCommunicable Protocol Reference