V6MiLightUdpServer.h 600 B

12345678910111213141516171819202122232425
  1. // This protocol is documented here:
  2. // http://www.limitlessled.com/dev/
  3. #include <Arduino.h>
  4. #include <MiLightClient.h>
  5. #include <WiFiUdp.h>
  6. #include <MiLightUdpServer.h>
  7. #ifndef _V6_MILIGHT_UDP_SERVER
  8. #define _V6_MILIGHT_UDP_SERVER
  9. class V6MiLightUdpServer : public MiLightUdpServer {
  10. public:
  11. V6MiLightUdpServer(MiLightClient*& client, uint16_t port, uint16_t deviceId)
  12. : MiLightUdpServer(client, port, deviceId)
  13. { }
  14. // Should return size of the response packet
  15. virtual size_t handlePacket(uint8_t* packet, size_t packetSize, uint8_t* responseBuffer);
  16. protected:
  17. };
  18. #endif