 #define DEBUG_PRINT 1
 
 // ****************
+
 time_t getNtpTime();
+String macToStr(const uint8_t* mac);
 void callback(char* intopic, byte* inpayload, unsigned int length);
-String macToStr(const uint8_t* mac);
 void run_lightcmd();
 void changelight();
 void sendmqttMsg(char* topictosend, String payload);

  ADC
*/
#include <TimeLib.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <OneWire.h>

    - 2400000;
}

static unsigned long numberOfSecondsSinceEpochUTC(uint16_t y, uint8_t m, uint8_t d, uint8_t h, uint8_t mm, uint8_t s) {
  long Days;
  Days = DateToMjd(y, m, d) - DateToMjd(1970, 1, 1);
  return (uint16_t)Days * 86400 + h * 3600L + mm * 60L + s - (timeZone * SECS_PER_HOUR);
}

static unsigned long numberOfSecondsSince1900EpochUTC(uint16_t y, uint8_t m, uint8_t d, uint8_t h, uint8_t mm, uint8_t s) {
  long Days;
  Days = DateToMjd(y, m, d) - DateToMjd(1900, 1, 1);
  return (uint16_t)Days * 86400 + h * 3600L + mm * 60L + s - (timeZone * SECS_PER_HOUR);
}
//
