[quote=“guessed, post:39, topic:169644”]I checked in a new version this morning, and it’s in trunk in code.mios.com.
This version moves to using a library ([tt]L_Sonos1.lua[/tt]) to contain all the generic UPnP bits, and moves to using structured Lua Tables for the named function/action parameters to the UPnP calls… Internally it converts them to the necessary XML to send over the wire.
Sending data is handled, but I’m not post-processing the receipt yet, as I’m still working out how I want the results to look (as a Lua Table structure).
You should go ahead and get yourself setup with a Windows SVN client install (like http://tortoisesvn.net/, no affiliation etc) so you can make localized tweaks as needed.
Things that are UPnP-generic will go into the [tt]L_Sonos1.lua[/tt], and the rest (calls, etc) go into [tt]I_Sonos1.xml[/tt]
I have some fairly large improvements to make to the calling model, after the XML response stuff is sorted out, but these might have to wait until CY12.
Thankyou, you saved me from having to go out and buy a Sonos (I’ve been following a bunch of them on eBay)[/quote]
@guessed
I cannot get this to work - here is my finding:
I get an error on the sonosStartup function statement: “upnp = require(“L_Sonos1”)”
The log shows: function sonosStartup failed [string “…”]:32: attempt to index upvalue ‘upnp’ (a boolean value)
I have checked that the upload of the lua file is correct (so I believe anyway)
/anker
btw: I have now the svn installed…