Bluetooth client/server communication between comp

2019-01-15 03:02发布

问题:

I need just a basic example or tutorial of making a mobile phone and a computer communicate via Bluetooth.

A good link/website to start from is also appreciated.

Server part (computer part) can be made on many programming languages (Java, C++, Python or even something else).

Client part (mobile phone) must be a Java Micro Edition MIDlet.

回答1:

After many days of research, I managed to make an application that sends (in real time) screenshots of area around the mouse cursor on a computer to a mobile phone client.

Both client and server are written in Java. I used BlueCove to make the desktop part. It is a JSR-82 implementation (the same protocol as in MIDP), so desktop and mobile parts share a lot of code.


In case someone needs it, I release the application as public domain, without any responsibilities.

Download the code

I'm not really proud of it. After all, I was 15 when I wrote it. The code is horrible in some places, but I enjoyed making the abstraction for code reuse.