add TinyCloud

This commit is contained in:
cuu
2019-02-07 21:16:41 +08:00
parent 8a205de3ca
commit 021ebc3a3a
6 changed files with 280 additions and 0 deletions

View File

@@ -169,6 +169,15 @@ func (self *DBus) check_for_wireless(iwconfig string, wireless_ip string) bool
return true
}
func (self *DBus) GetWifiIP() string {
var wireless_ip string
if self.Wifi != nil {
self.Wifi.Get( self.Wifi.Method("GetWirelessIP", ""), &wireless_ip)
}
return wireless_ip
}
func (self *DBus) IsWifiConnectedNow() bool {
var fast bool
var iwconfig string