21 lines
409 B
C++
21 lines
409 B
C++
#ifndef UPNPBROADCASTRESPONDER_H
|
|
#define UPNPBROADCASTRESPONDER_H
|
|
|
|
#include <Arduino.h>
|
|
#include <ESP8266WiFi.h>
|
|
#include <WiFiUDP.h>
|
|
#include "Switch.h"
|
|
|
|
class UpnpBroadcastResponder {
|
|
private:
|
|
WiFiUDP UDP;
|
|
public:
|
|
UpnpBroadcastResponder();
|
|
~UpnpBroadcastResponder();
|
|
bool beginUdpMulticast();
|
|
void serverLoop();
|
|
void addDevice(Switch& device);
|
|
};
|
|
|
|
#endif
|