| Reply | « Previous Thread | Next Thread » |
|
private void searchForServices(){
if(deviceList.size() > 0){ UUID[] uuids = new UUID[2]; uuids[0] = new UUID(0x0003); uuids[1] = new UUID(UUID_STRING, false); serviceTable = new Hashtable(); println("Mencari Service dari Device"); println(String.valueOf(deviceList.size())); int[] att = {0x0100}; for(int i=0 ; i<deviceList.size() ; i++){ try { int trans = agent.searchServices(att, uuids, (RemoteDevice) deviceList.elementAt(i), this); try { println("Pada "+((RemoteDevice) deviceList.elementAt(i)).getFriendlyName(false)); println(String.valueOf(trans)); }catch(Exception e){ } waitForSearchEnd(trans); }catch(BluetoothStateException b){ println("Error Cari Service : " + b.toString()); } } } } i succes find Device, but when try to find Service not appears anything? what is int[] att = {0x0100}; means, that is very Important |
|
Hi
Welcome to bluetooth forum. I think you will find these values will work better PHP Code:
Jim |
| jimgilmour1 |
| View Public Profile |
| Find all posts by jimgilmour1 |
|
UUID[] uuidSet = {new UUID("8841", true)};
int[] attrSet = {0x0100, 0x0003, 0x0004}; what 8841 means? that every HandPhone have unique ID? with my sintax, my PC can find service and connect to my Nokia E50, but if PC run's server my E50 can't find Service? |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| can't stop advertising a service? | buzz111 | Python | 2 | 2006-11-15 23:11 |
| Bluetooth service discovery??? | leomil | Bluetooth Technology | 1 | 2006-10-26 02:35 |
| Bluetooth RFCOMM connects to PC FAX Service instead of SPP | simbalNokia | Symbian Networking & Messaging | 0 | 2006-02-28 13:43 |
| Bluetooth Virtual Serial Port | mealos | Bluetooth Technology | 2 | 2004-12-03 04:46 |
| list box example | murmur20 | Symbian User Interface | 1 | 2004-11-09 05:42 |