Documentation
¶
Index ¶
- Variables
- type ConnectionStatusResponse
- type ErrorResponse
- type Huawei
- func (h *Huawei) Connect() error
- func (h *Huawei) DeleteSMS(index int) error
- func (h *Huawei) Disconnect() error
- func (h *Huawei) GetConnectionStatus() ([]string, error)
- func (h *Huawei) GetSmsCount() ([]string, error)
- func (h *Huawei) GetSmsList() ([]SMS, error)
- func (h *Huawei) GetToken() error
- func (h *Huawei) IsConnected() (bool, error)
- func (h *Huawei) Login(username, password string) error
- func (h *Huawei) SendSMS(msg, phone string) error
- type Response
- type SMS
- type SMSCountResponse
- type SMSListResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ERROR_LOGIN_ALREADY_LOGIN = 108003
View Source
var ERROR_LOGIN_PASSWORD_WRONG = 108002
View Source
var ERROR_LOGIN_USERNAME_PWD_ORERRUN = 108007
View Source
var ERROR_LOGIN_USERNAME_PWD_WRONG = 108006
View Source
var ERROR_LOGIN_USERNAME_WRONG = 108001
View Source
var ERROR_SYSTEM_BUSY = 100004
View Source
var ERROR_SYSTEM_NO_RIGHTS = "100003"
View Source
var ERROR_SYSTEM_NO_SUPPORT = 100002
View Source
var ERROR_VOICE_BUSY = 120001
View Source
var ERROR_WRONG_TOKEN = 125001
Functions ¶
This section is empty.
Types ¶
type ConnectionStatusResponse ¶
type ConnectionStatusResponse struct {
XMLName xml.Name `xml:"response"`
ConnectionStatus string `xml:"ConnectionStatus"`
SignalStrength string `xml:"SignalStrength"`
SignalIcon string `xml:"SignalIcon"`
CurrentNetworkType string `xml:"CurrentNetworkType"`
CurrentServiceDomain string `xml:"CurrentServiceDomain"`
RoamingStatus string `xml:"RoamingStatus"`
BatteryStatus string `xml:"BatteryStatus"`
BatteryLevel string `xml:"BatteryLevel"`
SimlockStatus string `xml:"SimlockStatus"`
WanIPAddress string `xml:"WanIPAddress"`
PrimaryDNS string `xml:"PrimaryDns"`
SecondaryDNS string `xml:"SecondaryDns"`
CurrentWifiUser string `xml:"CurrentWifiUser"`
TotalWifiUser string `xml:"TotalWifiUser"`
ServiceStatus string `xml:"ServiceStatus"`
SimStatus string `xml:"SimStatus"`
WifiStatus string `xml:"WifiStatus"`
}
type ErrorResponse ¶
type Huawei ¶
type Huawei struct {
IP string
// contains filtered or unexported fields
}
func (*Huawei) Disconnect ¶
func (*Huawei) GetConnectionStatus ¶
func (*Huawei) GetSmsCount ¶
func (*Huawei) GetSmsList ¶
func (*Huawei) IsConnected ¶
type SMSCountResponse ¶
type SMSCountResponse struct {
XMLName xml.Name `xml:"response"`
LocalUnread string `xml:"LocalUnread"`
LocalInbox string `xml:"LocalInbox"`
LocalOutbox string `xml:"LocalOutbox"`
LocalDraft string `xml:"LocalDraft"`
LocalDeleted string `xml:"LocalDeleted"`
SimUnread string `xml:"SimUnread"`
SimInbox string `xml:"SimInbox"`
SimOutbox string `xml:"SimOutbox"`
SimDraft string `xml:"SimDraft"`
LocalMax string `xml:"LocalMax"`
SimMax string `xml:"SimMax"`
}
Click to show internal directories.
Click to hide internal directories.