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 <DLNADevice.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
◆ DLNADevice()
tiny_dlna::DLNADevice::DLNADevice |
( |
bool |
ok = true | ) |
|
|
inline |
◆ addIcon()
void tiny_dlna::DLNADevice::addIcon |
( |
Icon |
icon | ) |
|
|
inline |
◆ addService()
Adds a service defintion.
◆ addString()
const char* tiny_dlna::DLNADevice::addString |
( |
char * |
string | ) |
|
|
inline |
Adds a string to the string repository.
◆ clear()
void tiny_dlna::DLNADevice::clear |
( |
| ) |
|
|
inline |
◆ clearIcons()
void tiny_dlna::DLNADevice::clearIcons |
( |
| ) |
|
|
inline |
Overwrite the default icon.
◆ getBaseURL()
Url& tiny_dlna::DLNADevice::getBaseURL |
( |
| ) |
|
|
inline |
◆ getDeviceType()
const char* tiny_dlna::DLNADevice::getDeviceType |
( |
| ) |
|
|
inline |
◆ getDeviceURL()
Url& tiny_dlna::DLNADevice::getDeviceURL |
( |
| ) |
|
|
inline |
This method returns base url/device.xml.
◆ getFriendlyName()
const char* tiny_dlna::DLNADevice::getFriendlyName |
( |
| ) |
|
|
inline |
◆ getIcon()
Icon tiny_dlna::DLNADevice::getIcon |
( |
int |
idx = 0 | ) |
|
|
inline |
◆ getIPAddress()
IPAddress tiny_dlna::DLNADevice::getIPAddress |
( |
| ) |
|
|
inline |
◆ getIPStr()
const char* tiny_dlna::DLNADevice::getIPStr |
( |
| ) |
|
|
inline |
Provides the local address as string.
◆ getManufacturer()
const char* tiny_dlna::DLNADevice::getManufacturer |
( |
| ) |
|
|
inline |
◆ getManufacturerURL()
const char* tiny_dlna::DLNADevice::getManufacturerURL |
( |
| ) |
|
|
inline |
◆ getModelDescription()
const char* tiny_dlna::DLNADevice::getModelDescription |
( |
| ) |
|
|
inline |
◆ getModelName()
const char* tiny_dlna::DLNADevice::getModelName |
( |
| ) |
|
|
inline |
◆ getModelNumber()
const char* tiny_dlna::DLNADevice::getModelNumber |
( |
| ) |
|
|
inline |
◆ getNS()
const char* tiny_dlna::DLNADevice::getNS |
( |
| ) |
|
|
inline |
◆ getSerialNumber()
const char* tiny_dlna::DLNADevice::getSerialNumber |
( |
| ) |
|
|
inline |
◆ getService()
Finds a service definition by name.
◆ getServices()
◆ getStringRegistry()
◆ getTimestamp()
uint32_t tiny_dlna::DLNADevice::getTimestamp |
( |
| ) |
|
|
inline |
Returns the time when this object has been updated.
◆ getUDN()
const char* tiny_dlna::DLNADevice::getUDN |
( |
| ) |
|
|
inline |
◆ getUniveralProductCode()
const char* tiny_dlna::DLNADevice::getUniveralProductCode |
( |
| ) |
|
|
inline |
◆ operator bool()
tiny_dlna::DLNADevice::operator bool |
( |
| ) |
|
|
inline |
◆ print()
void tiny_dlna::DLNADevice::print |
( |
Print & |
out | ) |
|
|
inline |
◆ printDevice()
size_t tiny_dlna::DLNADevice::printDevice |
( |
| ) |
|
|
inlineprotected |
◆ printIconDlnaInfo()
size_t tiny_dlna::DLNADevice::printIconDlnaInfo |
( |
Icon & |
icon | ) |
|
|
inlineprotected |
◆ printIconList()
size_t tiny_dlna::DLNADevice::printIconList |
( |
| ) |
|
|
inlineprotected |
◆ printRoot()
size_t tiny_dlna::DLNADevice::printRoot |
( |
| ) |
|
|
inlineprotected |
◆ printService()
size_t tiny_dlna::DLNADevice::printService |
( |
void * |
srv | ) |
|
|
inlineprotected |
◆ printServiceList()
size_t tiny_dlna::DLNADevice::printServiceList |
( |
| ) |
|
|
inlineprotected |
◆ printSpecVersion()
size_t tiny_dlna::DLNADevice::printSpecVersion |
( |
| ) |
|
|
inlineprotected |
◆ setActive()
void tiny_dlna::DLNADevice::setActive |
( |
bool |
flag | ) |
|
|
inline |
◆ setBaseURL()
void tiny_dlna::DLNADevice::setBaseURL |
( |
Url |
url | ) |
|
|
inline |
◆ setDeviceType()
void tiny_dlna::DLNADevice::setDeviceType |
( |
const char * |
st | ) |
|
|
inline |
◆ setFriendlyName()
void tiny_dlna::DLNADevice::setFriendlyName |
( |
const char * |
name | ) |
|
|
inline |
◆ setIPAddress()
void tiny_dlna::DLNADevice::setIPAddress |
( |
IPAddress |
address | ) |
|
|
inline |
◆ setManufacturer()
void tiny_dlna::DLNADevice::setManufacturer |
( |
const char * |
man | ) |
|
|
inline |
◆ setManufacturerURL()
void tiny_dlna::DLNADevice::setManufacturerURL |
( |
const char * |
url | ) |
|
|
inline |
◆ setModelDescription()
void tiny_dlna::DLNADevice::setModelDescription |
( |
const char * |
descr | ) |
|
|
inline |
◆ setModelName()
void tiny_dlna::DLNADevice::setModelName |
( |
const char * |
name | ) |
|
|
inline |
◆ setModelNumber()
void tiny_dlna::DLNADevice::setModelNumber |
( |
const char * |
number | ) |
|
|
inline |
◆ setNS()
void tiny_dlna::DLNADevice::setNS |
( |
const char * |
ns | ) |
|
|
inline |
◆ setSerialNumber()
void tiny_dlna::DLNADevice::setSerialNumber |
( |
const char * |
sn | ) |
|
|
inline |
◆ setUDN()
void tiny_dlna::DLNADevice::setUDN |
( |
const char * |
id | ) |
|
|
inline |
◆ setUniveralProductCode()
void tiny_dlna::DLNADevice::setUniveralProductCode |
( |
const char * |
upc | ) |
|
|
inline |
◆ updateTimestamp()
void tiny_dlna::DLNADevice::updateTimestamp |
( |
| ) |
|
|
inline |
◆ DLNAControlPointMgr
◆ XMLDeviceParser
◆ base_url
Url tiny_dlna::DLNADevice::base_url {"http://localhost:9876/dlna"} |
|
protected |
◆ device_type
const char* tiny_dlna::DLNADevice::device_type = nullptr |
|
protected |
◆ device_url
Url tiny_dlna::DLNADevice::device_url |
|
protected |
◆ friendly_name
const char* tiny_dlna::DLNADevice::friendly_name = nullptr |
|
protected |
◆ icon
Icon tiny_dlna::DLNADevice::icon |
|
protected |
◆ icons
◆ is_active
bool tiny_dlna::DLNADevice::is_active = true |
|
protected |
◆ localhost
IPAddress tiny_dlna::DLNADevice::localhost |
|
protected |
◆ manufacturer
const char* tiny_dlna::DLNADevice::manufacturer = nullptr |
|
protected |
◆ manufacturer_url
const char* tiny_dlna::DLNADevice::manufacturer_url = nullptr |
|
protected |
◆ model_description
const char* tiny_dlna::DLNADevice::model_description = nullptr |
|
protected |
◆ model_name
const char* tiny_dlna::DLNADevice::model_name = nullptr |
|
protected |
◆ model_number
const char* tiny_dlna::DLNADevice::model_number = nullptr |
|
protected |
◆ model_url
const char* tiny_dlna::DLNADevice::model_url = nullptr |
|
protected |
◆ ns
const char* tiny_dlna::DLNADevice::ns = "xmlns=\"urn:schemas-upnp-org:device-1-0\"" |
|
protected |
◆ serial_number
const char* tiny_dlna::DLNADevice::serial_number = nullptr |
|
protected |
◆ services
◆ strings
◆ timestamp
uint64_t tiny_dlna::DLNADevice::timestamp = 0 |
|
protected |
◆ udn
const char* tiny_dlna::DLNADevice::udn = "uuid:09349455-2941-4cf7-9847-0dd5ab210e97" |
|
protected |
◆ universal_product_code
const char* tiny_dlna::DLNADevice::universal_product_code = nullptr |
|
protected |
◆ version_major
int tiny_dlna::DLNADevice::version_major = 1 |
|
protected |
◆ version_minor
int tiny_dlna::DLNADevice::version_minor = 0 |
|
protected |
◆ xml
The documentation for this class was generated from the following file: