Add support for multiple light bars/remotes (#3), bump to version 0.2
This commit is contained in:
32
constants.h
Normal file
32
constants.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef CONSTANTS_H
|
||||
#define CONSTANTS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
namespace constants
|
||||
{
|
||||
// The version number of lightbar2mqtt.
|
||||
const String VERSION = "0.2";
|
||||
|
||||
// The maximum number of light bars that can be connected to the controller.
|
||||
const uint8_t MAX_LIGHTBARS = 10;
|
||||
|
||||
// The maximum number of remotes that can be connected to the controller.
|
||||
const uint8_t MAX_REMOTES = 10;
|
||||
|
||||
// The maximum number of serials, the controller will be able to save latest package ids for.
|
||||
// This should always >= MAX_REMOTES + MAX_LIGHTBARS.
|
||||
const uint8_t MAX_SERIALS = 32;
|
||||
|
||||
// The maximum number of command listeners that can be registered for a remote.
|
||||
const uint8_t MAX_COMMAND_LISTENERS = 10;
|
||||
};
|
||||
|
||||
struct SerialWithName
|
||||
{
|
||||
uint32_t serial;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user