Passing command via ssh & and password over sshpass

I'm trying to pass commands over ssh which shouldn't be a problem. For that I'm using a heredoc.

The password of the remote host is saved in a variable ( _pw )

But I'm using the parameter -tt for ssh not for sshpass like the error message ?!

Does anyone have an idea ?

My script looks like this:

#!bin/bash

_x=0
while [ $_x -eq 0 ]
do

echo "waiting for device ..."

while [ ! -d /sys/class/net/usb0 ]
do
sleep 2
done

if nc -zv 169.254.0.1 22 2>&1 | grep -q succeeded; then
_x=1

echo "found device ..."
echo "connecting ..."
sleep 5

_pw=$(cat /home/admin/pw.txt)
sleep 3

# This line is making some trouble with ssh and sshpass

sshpass -p ${_pw} ssh -tt admin@169.254.0.1 << HERE
config
extra-sets
serviceacces yes
exit
exit
write
exit
HERE

else

     echo "waiting for ssh connection ..."
fi

done

I'm getting following error for this

sshpass: invalid option -- 't'