Begin work on client side command processor & wheel controller
This commit is contained in:
parent
e961c558ac
commit
7f8cc9420d
5 changed files with 40 additions and 2 deletions
|
@ -142,3 +142,9 @@ bool PixelBot::Tick()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PixelBot:processCommand(String command)
|
||||||
|
{
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,5 +58,7 @@ private:
|
||||||
|
|
||||||
// The TCP client to use as the PixelHub server transport connection.
|
// The TCP client to use as the PixelHub server transport connection.
|
||||||
WiFiClient tcpClient = WiFiClient();
|
WiFiClient tcpClient = WiFiClient();
|
||||||
|
|
||||||
|
bool processCommand(String command);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
12
PixelHub-Client/PixelBotController.cpp
Normal file
12
PixelHub-Client/PixelBotController.cpp
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#include "PixelBotController.h"
|
||||||
|
|
||||||
|
PixelBotController::PixelBotController()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
PixelBotController::~PixelBotController()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
18
PixelHub-Client/PixelBotController.h
Normal file
18
PixelHub-Client/PixelBotController.h
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Connects to a PixelHub server, receives commands, and acts upon them.
|
||||||
|
/// </summmary>
|
||||||
|
class PixelBotController
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PixelBotController();
|
||||||
|
~PixelBotController();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
#include "PixelBot.h"
|
#include "PixelBot.h"
|
||||||
|
|
||||||
char ssid[] = "ssid";
|
char ssid[] = "ZimWeaver";
|
||||||
char password[] = "password";
|
char password[] = "jungl3OfC0nfu$*on";
|
||||||
|
|
||||||
PixelBot pixelBot;
|
PixelBot pixelBot;
|
||||||
|
|
||||||
|
|
Reference in a new issue