main_screen

remove all DBUS handler,and in related plugins

wifi
use wpa-connect to do the connecting / scanning , use wpa_cli to do disconnect
This commit is contained in:
cuu
2021-10-10 00:20:47 +08:00
parent 0461450ea9
commit d463dd10ec
14 changed files with 274 additions and 195 deletions

View File

@@ -96,8 +96,8 @@ func (self *TinyCloudPage) SetCoords() {
}
func (self *TinyCloudPage) SetLabels() {
if self.Screen.DBusManager.IsWifiConnectedNow() {
self.IP = self.Screen.DBusManager.GetWifiIP()
if self.Screen.IsWifiConnectedNow() {
self.IP = self.Screen.GetWirelessIP()
fmt.Printf("TinyCould : %s\n",self.IP)
}else {
self.IP = "xxx.xxx.xxx.xxx"
@@ -179,7 +179,7 @@ func (self *TinyCloudPage) KeyDown( ev *event.Event ) {
func (self *TinyCloudPage) Draw() {
self.ClearCanvas()
if self.Screen.DBusManager.IsWifiConnectedNow() {
if self.Screen.IsWifiConnectedNow() {
self.Icons["online"].NewCoord(self.Coords["online"].X, self.Coords["online"].Y)
self.Icons["online"].Draw()