Device Attributes and generation of XML using urn:schemas-upnp-org:device-1-0. We could just return a predefined device xml document, but we provide a dynamic generation of the service xml which should be more memory efficient. Strings are represented as char*, so you can assign values that are stored in ProgMem to mimimize the RAM useage. If you need to keep the values on the heap you can use addString() method.
More...
#include <DLNADeviceInfo.h>
Device Attributes and generation of XML using urn:schemas-upnp-org:device-1-0. We could just return a predefined device xml document, but we provide a dynamic generation of the service xml which should be more memory efficient. Strings are represented as char*, so you can assign values that are stored in ProgMem to mimimize the RAM useage. If you need to keep the values on the heap you can use addString() method.
- Author
- Phil Schatzmann
◆ DLNADeviceInfo()
| tiny_dlna::DLNADeviceInfo::DLNADeviceInfo |
( |
bool |
ok = true | ) |
|
|
inline |
◆ ~DLNADeviceInfo()
| tiny_dlna::DLNADeviceInfo::~DLNADeviceInfo |
( |
| ) |
|
|
inline |
◆ addIcon()
| void tiny_dlna::DLNADeviceInfo::addIcon |
( |
Icon |
icon | ) |
|
|
inline |
◆ addService()
Adds a service defintion.
◆ begin()
| virtual bool tiny_dlna::DLNADeviceInfo::begin |
( |
| ) |
|
|
inlinevirtual |
Override to initialize the device.
◆ clear()
| void tiny_dlna::DLNADeviceInfo::clear |
( |
| ) |
|
|
inline |
◆ clearIcons()
| void tiny_dlna::DLNADeviceInfo::clearIcons |
( |
| ) |
|
|
inline |
Overwrite the default icon.
◆ getBaseURL()
| const char * tiny_dlna::DLNADeviceInfo::getBaseURL |
( |
| ) |
|
|
inline |
◆ getDeviceType()
| const char * tiny_dlna::DLNADeviceInfo::getDeviceType |
( |
| ) |
|
|
inline |
◆ getDeviceURL()
| Url & tiny_dlna::DLNADeviceInfo::getDeviceURL |
( |
| ) |
|
|
inline |
This method returns base url/device.xml.
◆ getFriendlyName()
| const char * tiny_dlna::DLNADeviceInfo::getFriendlyName |
( |
| ) |
|
|
inline |
◆ getIcon()
| Icon tiny_dlna::DLNADeviceInfo::getIcon |
( |
int |
idx = 0 | ) |
|
|
inline |
◆ getIPAddress()
| IPAddress tiny_dlna::DLNADeviceInfo::getIPAddress |
( |
| ) |
|
|
inline |
Provides the local IP address.
◆ getIPStr()
| const char * tiny_dlna::DLNADeviceInfo::getIPStr |
( |
| ) |
|
|
inline |
Provides the local address as string.
◆ getManufacturer()
| const char * tiny_dlna::DLNADeviceInfo::getManufacturer |
( |
| ) |
|
|
inline |
◆ getManufacturerURL()
| const char * tiny_dlna::DLNADeviceInfo::getManufacturerURL |
( |
| ) |
|
|
inline |
◆ getModelDescription()
| const char * tiny_dlna::DLNADeviceInfo::getModelDescription |
( |
| ) |
|
|
inline |
◆ getModelName()
| const char * tiny_dlna::DLNADeviceInfo::getModelName |
( |
| ) |
|
|
inline |
◆ getModelNumber()
| const char * tiny_dlna::DLNADeviceInfo::getModelNumber |
( |
| ) |
|
|
inline |
◆ getNS()
| const char * tiny_dlna::DLNADeviceInfo::getNS |
( |
| ) |
|
|
inline |
◆ getSerialNumber()
| const char * tiny_dlna::DLNADeviceInfo::getSerialNumber |
( |
| ) |
|
|
inline |
◆ getService()
Finds a service definition by name.
◆ getServices()
◆ getTimestamp()
| uint32_t tiny_dlna::DLNADeviceInfo::getTimestamp |
( |
| ) |
|
|
inline |
Returns the time when this object has been updated.
◆ getUDN()
| const char * tiny_dlna::DLNADeviceInfo::getUDN |
( |
| ) |
|
|
inline |
◆ getUniveralProductCode()
| const char * tiny_dlna::DLNADeviceInfo::getUniveralProductCode |
( |
| ) |
|
|
inline |
◆ loop()
| virtual void tiny_dlna::DLNADeviceInfo::loop |
( |
| ) |
|
|
inlinevirtual |
◆ operator bool()
| tiny_dlna::DLNADeviceInfo::operator bool |
( |
| ) |
|
|
inline |
◆ print()
| void tiny_dlna::DLNADeviceInfo::print |
( |
Print & |
out | ) |
|
|
inline |
◆ printDevice()
| size_t tiny_dlna::DLNADeviceInfo::printDevice |
( |
| ) |
|
|
inlineprotected |
◆ printIconDlnaInfo()
| size_t tiny_dlna::DLNADeviceInfo::printIconDlnaInfo |
( |
Icon & |
icon | ) |
|
|
inlineprotected |
◆ printIconList()
| size_t tiny_dlna::DLNADeviceInfo::printIconList |
( |
| ) |
|
|
inlineprotected |
◆ printRoot()
| size_t tiny_dlna::DLNADeviceInfo::printRoot |
( |
| ) |
|
|
inlineprotected |
◆ printService()
| size_t tiny_dlna::DLNADeviceInfo::printService |
( |
void * |
srv | ) |
|
|
inlineprotected |
◆ printServiceList()
| size_t tiny_dlna::DLNADeviceInfo::printServiceList |
( |
| ) |
|
|
inlineprotected |
◆ printSpecVersion()
| size_t tiny_dlna::DLNADeviceInfo::printSpecVersion |
( |
| ) |
|
|
inlineprotected |
◆ setActive()
| void tiny_dlna::DLNADeviceInfo::setActive |
( |
bool |
flag | ) |
|
|
inline |
◆ setBaseURL() [1/2]
| void tiny_dlna::DLNADeviceInfo::setBaseURL |
( |
const char * |
url | ) |
|
|
inline |
◆ setBaseURL() [2/2]
| void tiny_dlna::DLNADeviceInfo::setBaseURL |
( |
IPAddress |
ip, |
|
|
int |
port, |
|
|
const char * |
path = "" |
|
) |
| |
|
inline |
◆ setDeviceType()
| void tiny_dlna::DLNADeviceInfo::setDeviceType |
( |
const char * |
st | ) |
|
|
inline |
◆ setFriendlyName()
| void tiny_dlna::DLNADeviceInfo::setFriendlyName |
( |
const char * |
name | ) |
|
|
inline |
◆ setIPAddress()
| void tiny_dlna::DLNADeviceInfo::setIPAddress |
( |
IPAddress |
address | ) |
|
|
inline |
Defines the local IP address.
◆ setManufacturer()
| void tiny_dlna::DLNADeviceInfo::setManufacturer |
( |
const char * |
man | ) |
|
|
inline |
◆ setManufacturerURL()
| void tiny_dlna::DLNADeviceInfo::setManufacturerURL |
( |
const char * |
url | ) |
|
|
inline |
◆ setModelDescription()
| void tiny_dlna::DLNADeviceInfo::setModelDescription |
( |
const char * |
descr | ) |
|
|
inline |
◆ setModelName()
| void tiny_dlna::DLNADeviceInfo::setModelName |
( |
const char * |
name | ) |
|
|
inline |
◆ setModelNumber()
| void tiny_dlna::DLNADeviceInfo::setModelNumber |
( |
const char * |
number | ) |
|
|
inline |
◆ setNS()
| void tiny_dlna::DLNADeviceInfo::setNS |
( |
const char * |
ns | ) |
|
|
inline |
◆ setSerialNumber()
| void tiny_dlna::DLNADeviceInfo::setSerialNumber |
( |
const char * |
sn | ) |
|
|
inline |
◆ setUDN()
| void tiny_dlna::DLNADeviceInfo::setUDN |
( |
const char * |
id | ) |
|
|
inline |
◆ setUniveralProductCode()
| void tiny_dlna::DLNADeviceInfo::setUniveralProductCode |
( |
const char * |
upc | ) |
|
|
inline |
◆ setupServices()
◆ updateTimestamp()
| void tiny_dlna::DLNADeviceInfo::updateTimestamp |
( |
| ) |
|
|
inline |
◆ DLNAControlPointMgr
◆ DLNADevice
◆ XMLDeviceParser
◆ base_url
| const char* tiny_dlna::DLNADeviceInfo::base_url = "http://localhost:9876/dlna" |
|
protected |
◆ device_type
| const char* tiny_dlna::DLNADeviceInfo::device_type = nullptr |
|
protected |
◆ device_url
| Url tiny_dlna::DLNADeviceInfo::device_url |
|
protected |
◆ friendly_name
| const char* tiny_dlna::DLNADeviceInfo::friendly_name = nullptr |
|
protected |
◆ icon
| Icon tiny_dlna::DLNADeviceInfo::icon |
|
protected |
◆ icons
◆ is_active
| bool tiny_dlna::DLNADeviceInfo::is_active = true |
|
protected |
◆ localhost
| IPAddress tiny_dlna::DLNADeviceInfo::localhost |
|
protected |
◆ manufacturer
| const char* tiny_dlna::DLNADeviceInfo::manufacturer = nullptr |
|
protected |
◆ manufacturer_url
| const char* tiny_dlna::DLNADeviceInfo::manufacturer_url = nullptr |
|
protected |
◆ model_description
| const char* tiny_dlna::DLNADeviceInfo::model_description = nullptr |
|
protected |
◆ model_name
| const char* tiny_dlna::DLNADeviceInfo::model_name = nullptr |
|
protected |
◆ model_number
| const char* tiny_dlna::DLNADeviceInfo::model_number = nullptr |
|
protected |
◆ model_url
| const char* tiny_dlna::DLNADeviceInfo::model_url = nullptr |
|
protected |
◆ ns
| const char* tiny_dlna::DLNADeviceInfo::ns = "xmlns=\"urn:schemas-upnp-org:device-1-0\"" |
|
protected |
◆ serial_number
| const char* tiny_dlna::DLNADeviceInfo::serial_number = nullptr |
|
protected |
◆ services
◆ timestamp
| uint64_t tiny_dlna::DLNADeviceInfo::timestamp = 0 |
|
protected |
◆ udn
| const char* tiny_dlna::DLNADeviceInfo::udn = "uuid:09349455-2941-4cf7-9847-0dd5ab210e97" |
|
protected |
◆ universal_product_code
| const char* tiny_dlna::DLNADeviceInfo::universal_product_code = nullptr |
|
protected |
◆ url_str
| Str tiny_dlna::DLNADeviceInfo::url_str |
|
protected |
◆ version_major
| int tiny_dlna::DLNADeviceInfo::version_major = 1 |
|
protected |
◆ version_minor
| int tiny_dlna::DLNADeviceInfo::version_minor = 0 |
|
protected |
◆ xml
The documentation for this class was generated from the following file: