added ssid and pw to sendCommand