OTA Class

OTA Class

Description
A class used for updating firmware Over the Air (OTA) in local area network.

Syntax
class OTA

Members

Public Constructors 
A public constructor should not be used as this class is intended to be a singleton class. Access member functions using the object instance named OTA.
Public Methods 
OTA::beginOTAStarts to connect to OTA server and receive the new firmware.

OTA::beginOTA

Description
Starts the connect of OTA server and waiting to receive the new OTA firmware sending from the OTA client via TCP socket.

Syntax
void beginOTA(int port);

Parameters
port: port number for the OTA MDNS IP address, default port address is 8082.

Returns
NA

Example Code
Example: OTA

Notes and Warnings
Configures and registers the MDNS service required for the Arduino IDE to discover and recognize Ameba OTA. “OTA.h” must be included to use the class function.