billmania / roboquest_core

The backend functionality for the RoboQuest project
1 stars 0 forks source link

Fixed the display of network Connections on screens 2 and 3 #40

Closed billmania closed 1 year ago

billmania commented 1 year ago

Changed the display so the Name of the Connection is the first line on both screens. Also rearranged the output so all six lines will always fit.

The output is up to six lines: n/m connection name Dev: IP: SSID: Pwd: Type:

For Active Connections on screen 2, the IP address is shown only when the interface is actually connected. If the WiFi SSID or Pwd aren't correct, there won't be an IP. If there's no Ethernet cable connected, there won't be an IP. If the WiFi Connection is not a simple WPA configuration, the Pwd won't be shown.

For Inactive Connections on screen 3, ethernet Connections won't show anything but a name. For WiFi Connections, a Type of "ap" means the robot is acting as a WiFi Access Point. When the Type is "infrastructure" the robot is connecting to an Access Point.

Tested by cycling through all of Ethernet, WiFi infrastructure, and WiFi ap, activating and deactivating them.

Issue #39