Arduino DLNA Server
|
Setup of a Basic DLNA Control Point. The control point. More...
#include <DLNAControlPointMgr.h>
Public Member Functions | |
DLNAControlPointMgr () | |
void | setParseDevice (bool flag) |
Requests the parsing of the device information. More... | |
bool | begin (HttpRequest &http, IUDPService &udp, const char *searchTarget="ssdp:all", uint32_t processingTime=0, bool stopWhenFound=true) |
void | end () |
Stops the processing and releases the resources. More... | |
ActionRequest & | addAction (ActionRequest act) |
Registers a method that will be called. More... | |
ActionReply | executeActions () |
Executes all registered methods. More... | |
bool | loop () |
DLNAServiceInfo & | getService (const char *id) |
Provide addess to the service information. More... | |
DLNADevice & | getDevice (int deviceIdx=0) |
Provides the device information by index. More... | |
DLNADevice & | getDevice (DLNAServiceInfo &service) |
Provides the device for a service. More... | |
DLNADevice & | getDevice (Url location) |
Get a device for a Url. More... | |
Vector< DLNADevice > & | getDevices () |
bool | addDevice (DLNADevice dev) |
Adds a new device. More... | |
bool | addDevice (Url url) |
Adds the device from the device xml url if it does not already exist. More... | |
void | setActive (bool flag) |
We can activate/deactivate the scheduler. More... | |
bool | isActive () |
Checks if the scheduler is active. More... | |
Protected Member Functions | |
bool | matches (const char *usn) |
checks if the usn contains the search target More... | |
bool | processBye (Str &usn) |
processes a bye-bye message More... | |
size_t | createXML (ActionRequest &action) |
ActionReply | postAllActions () |
ActionReply | postAction (ActionRequest &action) |
Static Protected Member Functions | |
static bool | processDevice (NotifyReplyCP &data) |
Processes a NotifyReplyCP message. More... | |
Protected Attributes | |
Scheduler | scheduler |
IUDPService * | p_udp = nullptr |
HttpRequest * | p_http = nullptr |
Vector< DLNADevice > | devices |
Vector< ActionRequest > | actions |
XMLPrinter | xml |
bool | is_active = false |
bool | is_parse_device = false |
DLNADevice | NO_DEVICE {false} |
const char * | search_target |
Setup of a Basic DLNA Control Point. The control point.
The control point can also execute Actions
|
inline |
|
inline |
Registers a method that will be called.
|
inline |
Adds a new device.
|
inline |
Adds the device from the device xml url if it does not already exist.
|
inline |
@brief start the processing by sending out a MSearch. For the search target you can use: - ssdp:all : to search all UPnP devices, - upnp:rootdevice: only root devices . Embedded devices will not respond - uuid:device-uuid: search a device by vendor supplied unique id - urn:schemas-upnp-org:device:deviceType- version: locates all devices of a
given type (as defined by working committee)
|
inlineprotected |
Creates the Action Soap XML request. E.g "<?xml version=\"1.0"?>\r
"
"<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"\r
"
"s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\r
"
"<s:Body>\r
"
"<u:SetTarget "
"xmlns:u="urn:schemas-upnp-org:service:SwitchPower:1">\r
"
"<newTargetValue>1</newTargetValue>\r
"
"</u:SetTarget>\r
"
"</s:Body>\r
"
"</s:Envelope>\r
";
|
inline |
Stops the processing and releases the resources.
|
inline |
Executes all registered methods.
|
inline |
Provides the device for a service.
|
inline |
Provides the device information by index.
|
inline |
Get a device for a Url.
|
inline |
|
inline |
Provide addess to the service information.
|
inline |
Checks if the scheduler is active.
|
inline |
call this method in the Arduino loop as often as possible: the processes all replys
|
inlineprotected |
checks if the usn contains the search target
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
processes a bye-bye message
|
inlinestaticprotected |
Processes a NotifyReplyCP message.
|
inline |
We can activate/deactivate the scheduler.
|
inline |
Requests the parsing of the device information.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |