library that I was able to integrate into the codebase so there aren't any external dependencies. Both external projects have their own open source licenses. Those licenses are included. Also in this commit is some preliminary work to start adding MQTT support to SavvyCAN.
34 lines
492 B
C++
34 lines
492 B
C++
#ifndef CANCONCONST_H
|
|
#define CANCONCONST_H
|
|
|
|
namespace CANCon {
|
|
|
|
/**
|
|
* @brief The status enum
|
|
*/
|
|
enum status
|
|
{
|
|
NOT_CONNECTED, /*!< device is not connected */
|
|
CONNECTED /*!< device is connected */
|
|
};
|
|
|
|
enum type
|
|
{
|
|
GVRET_SERIAL,
|
|
KVASER,
|
|
SERIALBUS,
|
|
REMOTE,
|
|
MQTT,
|
|
NONE
|
|
};
|
|
}
|
|
|
|
class CANConStatus
|
|
{
|
|
public:
|
|
CANCon::status conStatus;
|
|
int numHardwareBuses;
|
|
};
|
|
|
|
#endif // CANCONCONST_H
|