2014-06-20, 23:46
Hi everyone,
Before I start with my question first 2 things. 1. This is my first post on the forum so Hi everyone Always nice to meet new people from all over the world. 2. I have no idea if this post is in the correct forum. So to all admins and mods so sorry and please move it if you prefer. I have looked around the forum and this was for me the post spot to post it
So after the brief introduction, my question
I'm building a remote controller on my Arduino board (Arduino is an open source µcontroller in C++). Anyway, I can make perfect HTTP calls and make responses. So I figured out how to make a json pin request to my XBMC server and my server is so kind the respond with a Pong But, now I need too make some GetInfoLabels calls like this one:
This gives me in my browser (Chrome) and in my Arduino a perfect response. BUT, my MacAddress is first time "Busy", I have to make very fast after the first request a second request and then I will get my mac address in the "xx:xx:xx:xx:xx:xx" form.
Can someone explain to my why I have to make the call a second time before the "Busy" state disappears? I get the same problem with the following labels: "System.KernelVersion", "System.TotalUptime","System.Uptime" and "System.CpuFrequency".
Someone can help me with this problem? Maybe tell my XBMC server to respond after he got all the info? or delay the HTTP response in the HTTP header somewhere?
Thans
Before I start with my question first 2 things. 1. This is my first post on the forum so Hi everyone Always nice to meet new people from all over the world. 2. I have no idea if this post is in the correct forum. So to all admins and mods so sorry and please move it if you prefer. I have looked around the forum and this was for me the post spot to post it
So after the brief introduction, my question
I'm building a remote controller on my Arduino board (Arduino is an open source µcontroller in C++). Anyway, I can make perfect HTTP calls and make responses. So I figured out how to make a json pin request to my XBMC server and my server is so kind the respond with a Pong But, now I need too make some GetInfoLabels calls like this one:
Code:
/jsonrpc?request={"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{ "labels": ["Network.IPAddress","Network.MacAddress"]}, "id":1}
Can someone explain to my why I have to make the call a second time before the "Busy" state disappears? I get the same problem with the following labels: "System.KernelVersion", "System.TotalUptime","System.Uptime" and "System.CpuFrequency".
Someone can help me with this problem? Maybe tell my XBMC server to respond after he got all the info? or delay the HTTP response in the HTTP header somewhere?
Thans