OtaServer class inherits TcpServer class and overrides HandleRequest method to implement Over The Air Update functionality.
Internal ESP Wi-Fi station interface is created and initialized.
The Wi-Fi station SSID and password are set from project configuration (can be changed in Example menu of Project Configuration).
The Wi-Fi station is enabled.
The server is enabled when the Wi-Fi station interface gets an IP address.
The new firmware (<project>.bin file from the build folder) can be uploaded by sending 4-byte file length (little-endian) followed by the file data via TCP.
The firmware compatibility test is simulated by the firmwareIsCompatibleWithHardware flag.