23.2.6.4. Netx Duo Https Server
23.2.6.4.1. Overview
The netx duo https server example shows netx https server functions. This example enables a https server.
23.2.6.4.2. Board Setting
Connect an Ethernet port on PC to a RGMII port or a RMII port on the development board with an Ethernet cable
23.2.6.4.3. Project Configuration
Ethernet Port Settings: Refer to Ethernet common project settings
By Setting
CONFIG_NETX_ENABLE_DHCPto zero or comment the definition code in CMakeLists.txt, the DHCP will be disabledWhen DHCP is disabled, comment or delete
set(CONFIG_ECLIPSE_THREADX_NETXDUO_ADDONS_DHCP 1)can decrease project source files number
23.2.6.4.4. Running the example
When the example runs successfully, it will print phy link status periodically until its status becomes Up. Following message is displayed in the terminal: When accessing the HTTPs server, a window will pop up asking for a username and password. The default username is “name” and the default password is “password”. After confirmation, the page will be displayed.
Test response from server
Enet phy init passed !
Link Status: Down
Link Status: Up
Link Speed: 1000Mbps
Link Duplex: Full duplex