make it possible to switch reviever always on at compile time
This commit is contained in:
parent
15039f6b5d
commit
1ee36e7429
|
@ -16,6 +16,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "arduino-process.h"
|
#include "arduino-process.h"
|
||||||
#include "rest-engine.h"
|
#include "rest-engine.h"
|
||||||
|
#include "net/netstack.h"
|
||||||
|
|
||||||
extern resource_t res_dhtatemp, res_dhtahum, res_battery;
|
extern resource_t res_dhtatemp, res_dhtahum, res_battery;
|
||||||
extern resource_t res_dhtbtemp, res_dhtbhum;
|
extern resource_t res_dhtbtemp, res_dhtbhum;
|
||||||
|
@ -60,6 +61,7 @@ char dhtc_temp_s[8];
|
||||||
|
|
||||||
void setup (void)
|
void setup (void)
|
||||||
{
|
{
|
||||||
|
// NETSTACK_MAC.off(1); // reciever always on
|
||||||
printf("DHT Sensor\n");
|
printf("DHT Sensor\n");
|
||||||
// switch off the led
|
// switch off the led
|
||||||
pinMode(LED_PIN, OUTPUT);
|
pinMode(LED_PIN, OUTPUT);
|
||||||
|
|
Loading…
Reference in a new issue