I have problem witch perl & python bindings
get method is broken when i tray to get some files
i get only "˙Ř˙ŕ"
some exemplary scripts:
perl
#!/usr/bin/perl
use warnings;
use strict;
use OBEXFTP;
my $cli = new OBEXFTP::client($OBEXFTP::BLUETOOTH);
my $ret = $cli->connect("00:16:B8:30:CF:7F", 6);
print "connected\n" if $ret;
$ret = $cli->list("/");
print "$ret\n";
sleep 2;
print "getting file\n";
$ret = $cli->get_capability("/Obrazki/alien.jpg");
print "$ret\n";
# i get only "˙Ř˙ŕ" and noting is written on disk (telephone is sending file)
$ret = $cli->disconnect();
print "$ret\n";
$cli->DESTROY();
and python
#!/usr/bin/python
import obexftp
cli = obexftp.client(obexftp.BLUETOOTH)
print cli.connect("00:16:B8:30:CF:7F", 6)
print cli.list("/")
print cli.get("/Obrazki/alien.jpg")
print cli.disconnect()
cli.delete
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Perl binding is a little shaky. Also the call should be $cli->get not $cli->get_capability
Can you check if the file is there with $cli->list("/Obrazki"), please?
The Python binding works fine here. Please also try
cli.list("/Obrazki").
Are you going to code a complete application with one of the bindings? This would be exciting, please mail me. If you are trying to just get some files from the phone, try the obexftp app.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
on first sorry for my Eanglish
I have problem witch perl & python bindings
get method is broken when i tray to get some files
i get only "˙Ř˙ŕ"
some exemplary scripts:
perl
#!/usr/bin/perl
use warnings;
use strict;
use OBEXFTP;
my $cli = new OBEXFTP::client($OBEXFTP::BLUETOOTH);
my $ret = $cli->connect("00:16:B8:30:CF:7F", 6);
print "connected\n" if $ret;
$ret = $cli->list("/");
print "$ret\n";
sleep 2;
print "getting file\n";
$ret = $cli->get_capability("/Obrazki/alien.jpg");
print "$ret\n";
# i get only "˙Ř˙ŕ" and noting is written on disk (telephone is sending file)
$ret = $cli->disconnect();
print "$ret\n";
$cli->DESTROY();
and python
#!/usr/bin/python
import obexftp
cli = obexftp.client(obexftp.BLUETOOTH)
print cli.connect("00:16:B8:30:CF:7F", 6)
print cli.list("/")
print cli.get("/Obrazki/alien.jpg")
print cli.disconnect()
cli.delete
The Perl binding is a little shaky. Also the call should be $cli->get not $cli->get_capability
Can you check if the file is there with $cli->list("/Obrazki"), please?
The Python binding works fine here. Please also try
cli.list("/Obrazki").
Are you going to code a complete application with one of the bindings? This would be exciting, please mail me. If you are trying to just get some files from the phone, try the obexftp app.
>The Perl binding is a little shaky. Also the call should be $cli->get not $cli->get_capability
I have inserted bad versions :)
>Can you check if the file is there with $cli->list("/Obrazki"), please?
yes file is threr
> Are you going to code a complete application with one of the bindings?
yes ,exactly two :)