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