This repository has been archived on 2019-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
2016-10-21 20:19:22 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-10-21 20:47:49 +00:00
|
|
|
#include <ESP8266WiFi.h>
|
|
|
|
#include <WiFiUdp.h>
|
|
|
|
|
2016-10-21 20:19:22 +00:00
|
|
|
class PixelBot
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PixelBot();
|
|
|
|
~PixelBot();
|
2016-10-21 20:47:49 +00:00
|
|
|
|
|
|
|
void FindServer();
|
2016-10-21 20:19:22 +00:00
|
|
|
|
|
|
|
private:
|
2016-10-21 20:47:49 +00:00
|
|
|
char serverIp[16];
|
|
|
|
int serverPort = -1;
|
|
|
|
|
|
|
|
// ~~~ Auto Discovery System ~~~ //
|
|
|
|
|
|
|
|
// The address that the PixelHub beacon is broadcasting on.
|
|
|
|
IPAddress beaconAddress = IPAddress(239, 62, 148, 30);
|
|
|
|
// The port number that the PixelHub beacon is broadcasting on.
|
|
|
|
unsigned int beaconPort = 5050;
|
|
|
|
|
|
|
|
// The size of the datagram buffer that is used to buffer incoming messages.
|
|
|
|
int datagramBufferSize = 256;
|
|
|
|
|
|
|
|
// ~~~ ~~~ //
|
|
|
|
|
|
|
|
// The TCP client
|
|
|
|
WiFiClient tcpClient = WiFiClient();
|
2016-10-21 20:19:22 +00:00
|
|
|
};
|
|
|
|
|