Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 22:56, 7 April 2008.

How to connect Mobile to PC

From Forum Nokia Wiki

This is a code to connect a Mobile device to a PC using Bluetooth.

Original article at Mobile Programming PitStop

import bluetooth
import pyosd
from time import sleep
 
  
p = pyosd.osd()
p.set_pos(pyosd.POS_MID)
p.set_align(pyosd.ALIGN_CENTER)
p.set_colour("green")
p.display( "Scanning for bluetooth device")
 
nearby_devices = bluetooth.discover_devices(duration=20, lookup_names = True)
 
str= "found %d devices" % len(nearby_devices)
 
print str 
p.display(str)
sleep(2)
 
for name, addr in nearby_devices:
     p.display( "  %s - %s" % (addr, name))
     print (" %s - %s" % (addr,name))
     sleep(2)
  • Note: sleep and pyosd are external pys60 extensions (may be made by the contributor)
Related Discussions
Thread Thread Starter Forum Replies Last Post
Nokia 6300i with Voip - other than Gizmo5 Soegaard VoIP 62 2008-10-07 16:00
Using 6210 as a modem in Win2k Nokia_Archived PC Suite API and PC Connectivity SDK 1 2002-05-24 12:56
not possible to connect java-apps via Web/services proxy settings helgobender General Discussion 11 2007-05-13 19:44
how should i start for a basic WAP project msc73jxs General Browsing 1 2002-07-05 10:39
Multiple mobile connection AABBEE PC Suite API and PC Connectivity SDK 0 2004-12-16 04:21
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX