10 lines
196 B
C++
10 lines
196 B
C++
|
#include <SpejsNode.h>
|
||
|
#include <endpoints/DHTEndpoint.h>
|
||
|
|
||
|
SpejsNode node("ambient");
|
||
|
|
||
|
void init() {
|
||
|
node.init();
|
||
|
node.registerEndpoint("environment", new DHTEndpoint(2, 10000, DHT22));
|
||
|
}
|