View Full Version : SNAPconnect as a library
TimWhite
02-11-2010, 09:30 PM
I would really like to be able to embed SNAPconnect as a library inside my app, rather than having to distribute it as a standalone, separate installable, that has to run as a service or separate app.
I'd like to just bake the SNAPconnect libraries into my Java/Python app - I don't need it as a gateway, I just need my app to be able to talk to the network directly...
Thanks!
Tim
anchorstanley
07-13-2010, 02:15 PM
I also would like this functionality, only in my case a C/C++ app.
kbanks
07-19-2010, 04:02 PM
For the Python case specifically, we actually have something in the works that I think will meet your needs.
Instead of having your Python app connect to SNAPconnect, you will be able to import it, and use it directly.
# This is not real code, I'm just trying to convey the "flavor" of the new "SNAPconnect"
import snap
self.snapcom = snap.SNAPcom(funcs={'setButtonCount': frame.setButtonCount})
self.snapcom.open_serial(1, 2)
The code is real, we are already using it in the www.SNAPlighting.com demo site, and inside the new E10s. We still have to "productize" the technology, with documentation, etc. This is starting to pick up steam now that the 2.4 versions of SNAP and Portal have been released.
For other languages besides Python, you are still restricted to the XML-RPC style interface.
TimWhite
07-30-2010, 12:01 PM
Wow, that sounds very good...much closer to what I need!
Keep us up on when we might be able to use it!
Thanks,
Tim
vBulletin® v3.7.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.