Questions about ControlPoint Stack in C#
|
26-09-2014, 08:49 AM
Post: #1
|
|||
|
|||
Questions about ControlPoint Stack in C#
Hi,
I want to integrate Sonos modules with the help of the ControlPoint stack but I encounter some issues. It takes forever for the stack to detect the module on my network. Is there some mean I can use to directly have my devices in the stack without waiting for automatic detection ? My second issue is that when the device is finally detected, the callback method is correctly called but I can't get any information, except the name, out of it. Here my prototype code : Code: class Program Maybe am I doing something wrong. Any hint will be appreciated ![]() |
|||
26-09-2014, 04:30 PM
(This post was last modified: 29-09-2014 07:53 AM by simonc.)
Post: #2
|
|||
|
|||
RE: Questions about ControlPoint Stack in C#
(26-09-2014 08:49 AM)Yann Wrote: It takes forever for the stack to detect the module on my network. Is there some mean I can use to directly have my devices in the stack without waiting for automatic detection ? Creating a device list should automatically issue a MSEARCH, quickly running your Added callback for each device that responds. After this, the device list listens for periodic ALIVE or BYEBYE messages that devices send out, calling Added or Removed when it receives them. If you only see devices slowly trickling into your list, I'd guess your problem is one of
(26-09-2014 08:49 AM)Yann Wrote: My second issue is that when the device is finally detected, the callback method is correctly called but I can't get any information, except the name, out of it. ohNet has a rather rudimentary XML parser so leaves most parsing of device xml to clients. Code: string xml; |
|||
29-09-2014, 07:24 AM
(This post was last modified: 30-09-2014 07:17 AM by Yann.)
Post: #3
|
|||
|
|||
RE: Questions about ControlPoint Stack in C#
Thx for the answer, I'll try this out today !
edit: Admins had the broadcasting shut down on switchs, now it appears nearly instantaneously ![]() |
|||
« Next Oldest | Next Newest »
|