ControlPoint.h
Go to the documentation of this file.
188 static bool processDescriptionResponse(HttpConnection& connection, String& buffer, XML::Document& description);
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:22
Definition: HttpClient.h:29
Provides http base used for client and server connections.
Definition: HttpConnection.h:28
Defines the information used to create an outgoing message.
Definition: MessageSpec.h:75
Message using regular HTTP header management class.
Definition: SSDP/src/include/Network/SSDP/Message.h:72
Definition: ClassGroup.h:39
int add(const FlashString &domain, const ObjectClass::List &classes)
Definition: ControlPoint.h:36
bool beginSearch(const ObjectClass &cls, DeviceSearch::Callback callback)
Searches for UPnP device.
Definition: ControlPoint.h:98
bool beginSearch(Delegate< bool(Device &)> callback)
Definition: ControlPoint.h:114
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:179
static void onSsdpMessage(BasicMessage &msg)
Called via SSDP when incoming message received.
void reset()
Cancel any outstanding search and reset the list of known unique service names.
Definition: ControlPoint.h:55
bool beginSearch(const Urn &urn, DescriptionSearch::Callback callback)
Searches for UPnP device or service and fetches its description.
Definition: ControlPoint.h:87
void clear()
Perform a reset and destroy all created devices.
Definition: ControlPoint.h:64
bool isSearchActive() const
Determine if there's an active search in progress.
Definition: ControlPoint.h:123
ControlPoint(size_t maxResponseSize=2048)
Constructor.
Definition: ControlPoint.h:42
bool requestDescription(const String &url, DescriptionSearch::Callback callback)
Send a request for description document.
bool beginSearch(const Urn &urn, SsdpSearch::Callback callback)
Searches for UPnP device or service and returns SSDP response messages.
Definition: ControlPoint.h:76
bool formatMessage(Message &msg, MessageSpec &ms) override
Standard fields have been completed.
static const ObjectClass * findClass(const Urn &objectType)
Find a registered class.
bool beginSearch(const ObjectClass &cls, ServiceSearch::Callback callback)
Searches for UPnP service.
Definition: ControlPoint.h:109
virtual void onNotify(BasicMessage &msg)
Called by framework to handle an incoming SSDP message.
Definition: DeviceControl.h:32
Represents any kind of device, including a root device.
Definition: Libraries/UPnP/src/include/Network/UPnP/Device.h:58
bool add(LinkedItem *item)
bool remove(LinkedItem *item)
Base class template for linked items with type casting.
Definition: BaseObject.h:80
Definition: ActionRequest.h:25
Definition: Search.h:106
Definition: Search.h:125
This is a helper class used by ControlPoint to manage different search types.
Definition: Search.h:31
Definition: Search.h:148
Definition: Search.h:88