Many portation and conditional compilation directives added, Modbus refactored and moved to almost original lib, MQTT server,port,user,password configuration added to JSON

This commit is contained in:
2018-01-15 02:02:52 +03:00
parent d99c9948c9
commit 0553b1724f
14 changed files with 4311 additions and 3843 deletions

33
options.h Normal file
View File

@@ -0,0 +1,33 @@
// Configuration of drivers enabled
#define _dmxin
#define _dmxout
#define _owire
#define _modbus
#define _artnet
#if defined(__AVR__)
//All options available
#define modbusSerial Serial2
#endif
#if defined(__SAM3X8E__)
/// DMX not deployed yet
#undef _dmxin
//#undef _dmxout
#define modbusSerial Serial2
//#include <DmxDue.h>
#define dmxout DmxDue4
#define dmxin DmxDue1
#endif
#if defined(ESP_PLATFORM)
#undef _dmxin
#undef _dmxout
//#undef _modbus
#define modbusSerial Serial
#endif
#ifndef _dmxout
#undef _artnet
#endif