 float fermentationRate = 0; // knocks per ms
 unsigned long lastKnock;
 
+String messageBase = "bb/";
+
 String brewStage;
 String brewId;
 

void postTemp(float temp)
{
  String payload = "{ \"temperature\":" + String(temp, 2) + ", \"time\": \"" + millis() + "\" }";
  Particle.publish("brewing/temp", payload);
}

void postFermentationRate()
{
  String payload = "{ \"current_rate\":" + String(fermentationRate, 2) + ", \"time\": \"" + millis() + "\" }";
  Particle.publish("fermentation/rate", payload);
}

void printReading(float reading)

        displayFermentationModeDelta();

        waitUntil(Particle.connected);
        Particle.publish(messageBase + "ferment/state", "start");
      }
      else
      {
