   digitalWrite(TX_PIN, HIGH);
   delayMicroseconds(10);
   digitalWrite(TX_PIN, LOW);
-  ESP.deepSleep(60 * 1000000UL); // Will sleep forever unless wakeup pin connected to RST
+  espPower.deepSleep(60 * 1000000UL); // Will sleep forever unless wakeup pin connected to RST
 }
 
 void setup() {

  // Compose a request for the server according to the agreed format:
  // /set_rssi/:device_id/:mac_addr1/:rssi1/:mac_addr2?/ ... /:mac_addr10?/:rssi10/?
  String request = "/set_rssi/:";
  request += device_id;
  request += "/:";
  for (auto datapoint : datapoints) {
    request += datapoint.first; // The MAC address

#include <ESP8266WiFi.h>
#include "wifi_credentials.h"

ESP8266WiFiClass wifi;
EspClass espPower;
const uint8_t DEVICE_ID = 1; // The identification for the specific node
const char SERVER_IP[] = "192.168.0.136";
const int8_t CONNECTION_RETRIES = 3; // The maximum amount of wifi connection attempts
const uint8_t TRANSMISSION_SIZE = 10;
