Browse Source

Begin work on client side command processor & wheel controller

master
Starbeamrainbowlabs 4 years ago
parent
commit
7f8cc9420d
5 changed files with 40 additions and 2 deletions
  1. +6
    -0
      PixelHub-Client/PixelBot.cpp
  2. +2
    -0
      PixelHub-Client/PixelBot.h
  3. +12
    -0
      PixelHub-Client/PixelBotController.cpp
  4. +18
    -0
      PixelHub-Client/PixelBotController.h
  5. +2
    -2
      PixelHub-Client/PixelHub-Client.ino

+ 6
- 0
PixelHub-Client/PixelBot.cpp View File

@ -142,3 +142,9 @@ bool PixelBot::Tick()
return true;
}
bool PixelBot:processCommand(String command)
{
return false;
}

+ 2
- 0
PixelHub-Client/PixelBot.h View File

@ -58,5 +58,7 @@ private:
// The TCP client to use as the PixelHub server transport connection.
WiFiClient tcpClient = WiFiClient();
bool processCommand(String command);
};

+ 12
- 0
PixelHub-Client/PixelBotController.cpp View File

@ -0,0 +1,12 @@
#include "PixelBotController.h"
PixelBotController::PixelBotController()
{
}
PixelBotController::~PixelBotController()
{
}

+ 18
- 0
PixelHub-Client/PixelBotController.h View 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:
}

+ 2
- 2
PixelHub-Client/PixelHub-Client.ino View File

@ -8,8 +8,8 @@
#include "PixelBot.h"
char ssid[] = "ssid";
char password[] = "password";
char ssid[] = "ZimWeaver";
char password[] = "jungl3OfC0nfu$*on";
PixelBot pixelBot;