 #define DHTPIN   3            // Digital pin for communications
 
 //declaration
-void ICACHE_RAM_ATTR dht_wrapper(); // must be declared before the lib initialization
+void  dht_wrapper(); // must be declared before the lib initialization
 
 // Lib instantiate
 PietteTech_DHT DHT(DHTPIN, DHTTYPE, dht_wrapper);

// globals
bool bDHTstarted;       // flag to indicate we started acquisition
int acquireresult;
int _sensor_error_count;
unsigned long _sensor_report_count;

// This wrapper is in charge of calling
// must be defined like this for the lib work
void ICACHE_RAM_ATTR dht_wrapper() {
  DHT.isrCallback();
}

void ICACHE_RAM_ATTR callback(char* intopic, byte* inpayload, unsigned int length) {
  String receivedtopic = intopic;
  String receivedpayload ;


#include <Wire.h>
#include <PubSubClient.h>
#include "PietteTech_DHT.h"
/* rtc
  #include <RtcDS1307.h>
*/

#define REPORT_INTERVAL 3000 // in msec

#define SYS_CPU_80MHz 80
#define SYS_CPU_160MHz 160
