# USB dongle

**URL:** <https://forum.qoitech.com/t/usb-dongle/448>\
**Category:** Automation Toolbox\
**Created:** [October 10, 2022, 2:44pm UTC](https://forum.qoitech.com/t/usb-dongle/448 "2022-10-10T14:44:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![solene](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@solene](https://forum.qoitech.com/u/solene)\
**Post date:** [October 10, 2022, 2:44pm UTC](https://forum.qoitech.com/t/usb-dongle/448/1 "2022-10-10T14:44:36Z")

</div>

Hi,

Because I had some issues to connect to server, I received from Qoitech an USB dongle to activate my license.  
This is perfectly working, the license appears when I open otii.exe.  
But some errors appears now when I launch automation tests because the example scripts are made for a connection to server:

```auto
#Launch OTII and connect to server
cmd = f'otiicli --server --username={cfg.HOST["USERNAME"]} --password={cfg.HOST["PASSWORD"]}'
server = subprocess.Popen(cmd, shell=True)
connection = otii_connection.OtiiConnection(cfg.HOST["IP"], cfg.HOST["PORT"])
connect_response = connection.connect_to_server()

if connect_response["type"] == "error":
    print("Exit! Error code: " + connect_response["errorcode"] + ", Description: " + connect_response["data"]["message"])
    sys.exit()

```

_[Extract from an example script found on github]_

When I delete the connection commands, I cannot launch my tests because following instructions need this information.

Do you have some example scripts when we use an USB dongle please? Or a list of commands to remove/add ?

Best regards,  
Solene

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [October 13, 2022, 11:17am UTC](https://forum.qoitech.com/t/usb-dongle/448/2 "2022-10-13T11:17:07Z")

</div>

Hi Solene,

When you have a valid dongle, there is no need to have --username or --password.  
Just use:  
otiicli -s

Best regards,  
Björn
