Over a million developers have joined DZone.

Prompt Once And ONCE ONLY For Connection (access Point) To Use

Simple to see what's going on here.. it just took me a while to find the API calls so thought I should share it.

Once the default access point is set, the likes of urllib will not prompt again during the running of the script.

You could take this further by e.g. writing the selected access point Id to a config file if you never want the user to be prompted again.

In PyS60 versions before 1.9.x:

import socket

In PyS60 versions 1.9.x and above:

import btsocket

The reason for the difference: As of PyS60 1.9.x the module "socket" has been renamed to "btsocket". This is because of the name clash between the PyS60 extension module and the Python(2.5.1) core module. 


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}