Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

: The requested protocol does not exist btspp #130

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments
Open

: The requested protocol does not exist btspp #130

GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Define the URL which includes:
Device address, usually localhost
a UUID, the ID number of the service
name of the service 

2. Open the URL.
3. Wait for a client connection

What is the expected output? What do you see instead?
I'll expected to receive: Hello world

but:
The requested protocol does not exist 
btspp://localhost:b10c0be1111111111111111111110001;name=bluecovesrv_rf;authentic
ate=false;encrypt=false;authorize=false

What BlueCove version are you using (include build number for SNAPSHOT)? On 
what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?
I use Bluecove 2-1.1 Snapshot, win7 64-bit and eclipse.

This is my code:

public class MonAppli{

     public static void main( String args[] ) {
           try {

            StreamConnectionNotifier service = (StreamConnectionNotifier) 
                   Connector.open( "btspp://localhost:" + new UUID( 0x1101 ).toString() +";name=helloService");

            StreamConnection conn = (StreamConnection)service.acceptAndOpen();
            InputStream is = conn.openInputStream();

            byte buffer[] = new byte[80];
            int bytes_read = is.read( buffer );
            String received = new String(buffer, 0, bytes_read);
            System.out.println("received: " + received);

            conn.close();
           } catch ( IOException e ) {   System.err.print(e.toString());    }
         }
}

Original issue reported on code.google.com by mvivieng...@gmail.com on 10 Apr 2012 at 2:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant