ControlPoint.h
Go to the documentation of this file.
112 }
188 static bool processDescriptionResponse(HttpConnection& connection, String& buffer, XML::Document& description);
virtual void onNotify(BasicMessage &msg)
Called by framework to handle an incoming SSDP message.
Message using regular HTTP header management class.
Definition: SSDP/src/include/Network/SSDP/Message.h:71
void clear()
Perform a reset and destroy all created devices.
Definition: ControlPoint.h:100
bool add(LinkedItem *item)
Represents any kind of device, including a root device.
Definition: Libraries/UPnP/src/include/Network/UPnP/Device.h:57
ControlPoint(size_t maxResponseSize=2048)
Constructor.
Definition: ControlPoint.h:78
Definition: Search.h:106
Provides http base used for client and server connections.
Definition: HttpConnection.h:27
Definition: HttpClient.h:28
bool beginSearch(const Urn &urn, SsdpSearch::Callback callback)
Searches for UPnP device or service and returns SSDP response messages.
Definition: ControlPoint.h:112
Definition: DeviceControl.h:48
bool requestDescription(const String &url, DescriptionSearch::Callback callback)
Send a request for description document.
Defines the information used to create an outgoing message.
Definition: MessageSpec.h:74
bool formatMessage(Message &msg, MessageSpec &ms) override
Standard fields have been completed.
static void onSsdpMessage(BasicMessage &msg)
Called via SSDP when incoming message received.
int add(const FlashString &domain, const ObjectClass::List &classes)
Definition: ClassGroup.h:62
void reset()
Cancel any outstanding search and reset the list of known unique service names.
Definition: ControlPoint.h:91
Definition: ActionRequest.h:24
Definition: Search.h:124
bool remove(LinkedItem *item)
Delegate< void(SSDP::BasicMessage &message)> Callback
Callback invoked for every matching SSDP message.
Definition: Search.h:110
Definition: Search.h:143
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:21
bool isSearchActive() const
Determine if there's an active search in progress.
Definition: ControlPoint.h:159
static void registerClasses(const FlashString &domain, const ObjectClass::List &classes)
Use this method to register all device and service classes you need to control.
Definition: ControlPoint.h:215
This is a helper class used by ControlPoint to manage different search types.
Definition: Search.h:49
Definition: Search.h:166
static const ObjectClass * findClass(const Urn &objectType)
Find a registered class.