completed code for wifi file tranfer without security
and without indication