From 6cb7b6aa46e3eab7a400ac9ff13f8bd0ea2c995b Mon Sep 17 00:00:00 2001 From: lijie02 Date: Wed, 30 Jan 2019 19:21:20 +0800 Subject: [PATCH] wifimanager: add wifi status report msg for Qt UI. --- .../smartaudio/app_wifi_manager.cpp | 7 ++++--- package/netease/clockFrame/src/main.cpp | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp b/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp index 8e4e4cc6b..b826d6f27 100755 --- a/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp +++ b/package/allwinner/wifimanager/smartaudio/app_wifi_manager.cpp @@ -512,7 +512,8 @@ int api_wifi_state_notify(int state,int rssi, std::string ssid, std::string mac) if(NULL != pEvtJson) { //status = api_wifi_module_cmd_send((1<busCmd != 0xa0a) - LOG_EX(LOG_Debug, "Frame module get message cmd:0x%x\r\n",pMsg->busCmd); +PDBUS_MSG_PACK DBusOnMessage(uv_loop_t *pLoop, DBusConnection *pConn,PDBUS_MSG_PACK pMsg) +{ if (!pMsg || !pLoop || !pConn) { return NULL; - } + } + if(pMsg->busCmd != 0xa0a) + { + LOG_EX(LOG_Debug, "Frame module get message cmd:0x%x\r\n",pMsg->busCmd); + LOG_EX(LOG_Debug, "Frame module get message: %s\r\n",pMsg->pMsg); + } - LOG_EX(LOG_Debug, "Frame module get message: %s\r\n",pMsg->pMsg); switch (pMsg->busCmd) { case CMD_WIFI_SCAN_RESP: mailbox->recvWifiScanResult(QByteArray(pMsg->pMsg)); @@ -21,8 +22,8 @@ PDBUS_MSG_PACK DBusOnMessage(uv_loop_t *pLoop, DBusConnection *pConn,PDBUS_MSG_P case CMD_WIFI_CONF_RESP: mailbox->recvWifiConfResult(QByteArray(pMsg->pMsg)); break; - case CMD_WIFI_STATE_NTF: - mailbox->recvWifiConfResult(QByteArray(pMsg->pMsg)); + case CMD_WIFI_STATE_RESP: + mailbox->recvWifiStatusChange(QByteArray(pMsg->pMsg)); break; case CMD_WIFI_DISCONNECT_RESP: mailbox->recvWifiDisconnectResult(QByteArray(pMsg->pMsg));