Support building test sketches for ESP8266

This commit is contained in:
Patrick Fallberg
2016-01-20 22:29:38 +01:00
parent 4a5c0f9314
commit 15167d69e8
5 changed files with 50 additions and 2 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
* @def MY_NODE_TYPE
* @brief Contain a string describing the class of sketch/node (gateway/repeater/sensor).
*/
#if defined(MY_GATEWAY_SERIAL) || defined(MY_GATEWAY_W5100) || defined(MY_GATEWAY_ENC28J60) || defined(ARDUINO_ARCH_ESP8266) || defined(MY_GATEWAY_MQTT_CLIENT)
#if defined(MY_GATEWAY_SERIAL) || defined(MY_GATEWAY_W5100) || defined(MY_GATEWAY_ENC28J60) || defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_MQTT_CLIENT)
#define MY_GATEWAY_FEATURE
#define MY_IS_GATEWAY (true)
#define MY_NODE_TYPE "gateway"
@@ -292,7 +292,7 @@
#include <Arduino.h>
#if !defined(MY_CORE_ONLY)
#if defined(MY_GATEWAY_ESP8266)
#if defined(ARDUINO_ARCH_ESP8266)
#include "core/MyMainESP8266.cpp"
#else
#include "core/MyMainDefault.cpp"
@@ -30,3 +30,15 @@
#include <SPI.h>
#include <MySensor.h>
void setup() {
}
void presentation() {
// Present locally attached sensors here
}
void loop() {
// Send locally attached sensors data here
}
@@ -30,3 +30,15 @@
#include <SPI.h>
#include <MySensor.h>
void setup() {
}
void presentation() {
// Present locally attached sensors here
}
void loop() {
// Send locally attached sensors data here
}
@@ -30,3 +30,15 @@
#include <SPI.h>
#include <MySensor.h>
void setup() {
}
void presentation() {
// Present locally attached sensors here
}
void loop() {
// Send locally attached sensors data here
}
@@ -30,3 +30,15 @@
#include <SPI.h>
#include <MySensor.h>
void setup() {
}
void presentation() {
// Present locally attached sensors here
}
void loop() {
// Send locally attached sensors data here
}