Added wifi, wifiname and wificlientname to the from the database polled parameter list
@@ -775,6 +775,45 @@ void DeRestPluginPrivate::loadWifiInformationFromDb()
DBG_Printf(DBG_INFO_L2, "sql exec %s\n", qPrintable(sql));
rc = sqlite3_exec(db, qPrintable(sql), sqliteLoadConfigCallback, this, &errmsg);
+ if (rc != SQLITE_OK)
+ {
+ if (errmsg)
+ {
+ DBG_Printf(DBG_ERROR, "sqlite3_exec %s, error: %s\n", qPrintable(sql), errmsg);
+ sqlite3_free(errmsg);
+ }
+ }
+ sql = QLatin1String("SELECT * FROM config2 WHERE key='wifi'");
+
+ DBG_Printf(DBG_INFO_L2, "sql exec %s\n", qPrintable(sql));
+ rc = sqlite3_exec(db, qPrintable(sql), sqliteLoadConfigCallback, this, &errmsg);
+
+ if (rc != SQLITE_OK)
+ {
+ if (errmsg)
+ {
+ DBG_Printf(DBG_ERROR, "sqlite3_exec %s, error: %s\n", qPrintable(sql), errmsg);
+ sqlite3_free(errmsg);
+ }
+ }
+ sql = QLatin1String("SELECT * FROM config2 WHERE key='wifiname'");
+
+ DBG_Printf(DBG_INFO_L2, "sql exec %s\n", qPrintable(sql));
+ rc = sqlite3_exec(db, qPrintable(sql), sqliteLoadConfigCallback, this, &errmsg);
+
+ if (rc != SQLITE_OK)
+ {
+ if (errmsg)
+ {
+ DBG_Printf(DBG_ERROR, "sqlite3_exec %s, error: %s\n", qPrintable(sql), errmsg);
+ sqlite3_free(errmsg);
+ }
+ }
+ sql = QLatin1String("SELECT * FROM config2 WHERE key='wificlientname'");
+
+ DBG_Printf(DBG_INFO_L2, "sql exec %s\n", qPrintable(sql));
+ rc = sqlite3_exec(db, qPrintable(sql), sqliteLoadConfigCallback, this, &errmsg);
+
if (rc != SQLITE_OK)
{
if (errmsg)
