1
2
3
4
5 """ Control point side device implementation.
6
7 If you're using the control point high level API with no modifications on the
8 global flags (located on module brisa), then you shouldn't need to create this
9 class manually.
10
11 The framework default response to a device arrival is to build it and its
12 services automatically and forward it to your control point on the
13 "new_device_event" subscribed callback. This callback will receive the device
14 already ready for all actions.
15
16 Service objects contained by a device should be retrieved using the method
17 Device.get_service_by_type or accessing the Device.services dictionary directly.
18 """
19
20 import uuid
21 import brisa
22
23 from brisa.core import log
24 from brisa.core.network import url_fetch
25 from brisa.upnp.base_device import BaseDevice, BaseDeviceIcon
26 from brisa.upnp.control_point.device_builder import DeviceAssembler
27 from brisa.upnp.upnp_defaults import UPnPDefaults
28
29
30 -class Device(BaseDevice):
31 """ Represents an UPnP device.
32
33 Consult http://upnp.org/standardizeddcps/basic.asp as a basic reference.
34 """
35
45
56
65
66 @classmethod
69
70 @classmethod
73
74 @classmethod
77
78 @classmethod
82