Jump to content

cannot connect via python


Recommended Posts

I'm testing just arrived brickets, thanks!


I'm testing it on Ubuntu 10.04 via brick viewer everything seems to be alright but I cannot connect to brick via python and I get an error: ip_connection.Error: -1: Could not add device XYZ, timeout


I also had a problem with installing .egg (but this time I just imported libs manually): " root:/home/user/tinkerforge_python_bindings_latest> easy_install tingerforge.egg


Searching for tingerforge.egg Reading http://pypi.python.org/simple/tingerforge.egg/ Couldn't find index page for 'tingerforge.egg' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for tingerforge.egg error: Could not find suitable distribution for Requirement.parse('tingerforge.egg') "

Link to comment
Share on other sites

You can get the UIDs with the enumerate callback of the ip connection: http://www.tinkerforge.com/doc/Software/IPConnection_Python.html#example

But note: If you have two of the same devices (for example two Poti Bricklets) you obviously need to assign the UIDs while writing the code. Otherwise there is no way to differentiate between them!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...