Make ESP8266 sketches explicitly declare GW
In order to build core tests, there cannot be any hard coded GATEWAY flags (like MY_GATEWAY_ESP8266). These needs to be set in the sketch that implements the gateway.
This commit is contained in:
@@ -65,10 +65,6 @@
|
||||
//#undef F
|
||||
//#define F(x) (x)
|
||||
#include "core/MyHwESP8266.cpp"
|
||||
// Enable gateway feature
|
||||
#if !defined(MY_CORE_ONLY)
|
||||
#define MY_GATEWAY_ESP8266
|
||||
#endif
|
||||
#elif defined(ARDUINO_ARCH_AVR)
|
||||
#include "core/MyHwATMega328.cpp"
|
||||
#elif defined(ARDUINO_ARCH_SAMD)
|
||||
|
||||
@@ -78,7 +78,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
// Gateway mode always enabled for ESP8266. But we add this anyway ;)
|
||||
#define MY_GATEWAY_ESP8266
|
||||
|
||||
#define MY_ESP8266_SSID "MySSID"
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#define MY_GATEWAY_MQTT_CLIENT
|
||||
#define MY_GATEWAY_ESP8266
|
||||
|
||||
// Set this nodes subscripe and publish topic prefix
|
||||
#define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
|
||||
|
||||
Reference in New Issue
Block a user