-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urn:dslforum-org:service:WANDSLInterfaceConfig:1 returning empty result? #7
Comments
Hi @myaliaswastaken! I've just checked and the call seems to be right on first glance (see below for how I did that). I've not tested running it on one of my ESPs yet. Will try to do this this WE, not 100% sure if I'll find the time. But I have three suggestions for you! 1.) Have you tried only requesting one parameter at a time (so i.e.
2.) You might try is to check whether the account you use has all required permissions (though I don't expect this to be a problem in this case). 3.) Try to send manual requests from your browser to the API and check if the fbox gives the right replies or if something is wrong with the library. I used to do this when developing this library, using some SOAP browser addon. You can generate the required Nonces with this website (if you trust me enough to enter your password there): Good luck 👍 For future reference and maybe for others who are struggeling with using the library: Click here to see how I checked myaliaswastaken's commands.Start at https://192.168.179.1:49443/tr64desc.xml (assuming the default IP for your fbox). Then go to the service-node with the serviceType 'urn:dslforum-org:service:WANDSLInterfaceConfig:1'. You see, that the associated SCPDURL is '/wandslifconfigSCPD.xml', so if you head over to https://192.168.179.1:49443/wandslifconfigSCPD.xml you see what actions are available on this service. You see there is a service called 'GetInfo', so I know I can call this service withconnection.action("urn:dslforum-org:service:WANDSLInterfaceConfig:1", "GetInfo", params, a, req, b); Now I want to also get arguments from that service, so I put together the req array. This looks like this: String req[][2] = {{"argumentName1",""},{"argumentName2", ""},...}; where is one of the name nodes inside one of the argument nodes inside the argumentList nodes of the action that I chose above (and where the direction is 'out'). The empty string behind the argumentName is then filled with the value of the associated variable. Some action also take input parameters (like when you want to change the password of your WIFI), which then would be marked by a direction tag with the value 'in'. This is then done in a similar fashion with String params[][2] = {{"argumentName1","value1"},{"argumentName2","value2"}, ...}; |
Hi Aypac, thanks for your reply and effort much appreciated! Running with only one parameter also delivers an empty result, unfortunately.
I tried querying the Fritz!Box from the shell using wget, like in your referenced example here: Interesting enough, everything works fine, using the example provided and querying for GetCommonLinkProperties But when I run a query for GetInfo, as reply I do get an internal 500 error. Meanwhile I'm wondering if this might be supported by my 6590 Cable. Thanks for all your help! |
Ok, so we can assume that the problem is not related with this library? |
Any news on this? |
Hi, thanks for asking ;) Actually not really. I ran into the issue mentioned and simply couldn't solve it |
Some additional ideas of things to check:
|
As the library has had some major improvements in the meantime and OP seems to have move on, I'll close the issue. Please create a new issue and reference this one if you encounter a similar problem. |
Hi Aypac,
thanks for this great library, it's a great thing to communicate with the Fritz!Box and implementing cool stuff. I ran into some trouble and wondered, if you might be able to enlighten me.
my problem is, that a query like:
runs perfectly fine, but getting connection information via
seems to always return an empty result. I was wondering, if I'd be doing something obviously wrong, maybe you could help me out?
Thanks a million!
The text was updated successfully, but these errors were encountered: