2018-06-28 13:37:32 +00:00
|
|
|
#include <SpejsNode.h>
|
|
|
|
#include <endpoints/DHTEndpoint.h>
|
|
|
|
|
|
|
|
SpejsNode node("ambient");
|
|
|
|
|
|
|
|
void init() {
|
2018-09-02 16:32:13 +00:00
|
|
|
node.statusLED.config(2, LOW);
|
|
|
|
node.init(true);
|
|
|
|
node.registerEndpoint("environment", new DHTEndpoint(2, 2000, DHTesp::DHT22));
|
2018-06-28 13:37:32 +00:00
|
|
|
}
|