     mqtt.publish(topic.c_str(), message.c_str(), true);
   }
   if (logMode) {
-    String topic = mainTopic + String(F("/log/")) + String(status) + String('/') + protocol;
+    String topic = mainTopic + String(F("/log/")) + String(status) +
+                   String('/') + protocol;
     mqtt.publish(topic.c_str(), message.c_str());
   }
 }
 
-void rfRawCallback(const uint16_t* pulses, int length) {
+void rfRawCallback(const uint16_t *pulses, int length) {
   if (rawMode) {
     String data = rf.pulseTrainToString(pulses, length);
     if (data.length() > 0) {

#define myMQTT_PASSWORD NULL
#endif

const char* ssid = mySSID;
const char* password = myWIFIPASSWD;
const char* mqttBroker = myMQTT_BROCKER;
const char* mqttUser = myMQTT_USERNAME;
const char* mqttPassword = myMQTT_PASSWORD;

const int RECEIVER_PIN = 12; //avoid 0, 2, 15, 16
const int TRANSMITTER_PIN = 4;
const int HEARTBEAD_LED_PIN = 0;


  while (!mqtt.connected()) {
    Serial.print(F("Attempting MQTT connection..."));
    // Attempt to connect
    if (mqtt.connect(mainTopic.c_str(), mqttUser, mqttPassword,
                     mainTopic.c_str(), 0, true, "offline")) {
      Serial.println(F("connected"));
      mqtt.publish(mainTopic.c_str(), "online", true);
      mqtt.subscribe((mainTopic + F("/set/+")).c_str());
