Creating local bluetooth device, possible?
| Mon, 2005-12-05 11:23 | |
|
Hellos,
Is it possible to create "virtual" "local bluetooth device", which points in bluetooth service running on local device? This device would for example simulate GPS receiver, but instead of pointing in real H/W, it points into service on local device outputting NMEA string..? In theory it could be possible with: - Create bluetooth service and get it's TBTDevAddr Then register it into CCommsDatabaseBase: CCommsDatabase * db = CCommsDatabase::NewL( ETrue ); CCommsDbTableView * view1 = db->OpenTableLC( TPtrC( BT_DEVICE_TABLE ) ); view1->InsertRecord(btId); view1->WriteTextL(TPtrC(BT_DEV_FRIENDLY_NAME), _L("Virtual GPS")); view1->WriteTextL(TPtrC(BT_DEV_ADD), addr); // insert here the TBTDevAddr acquired before! view1->WriteUintL(TPtrC(BT_DEV_STATE), (TUint32) 923); view1->PutRecordChanges(); ? --noxo |
|






Forum posts: 183