<commit_before>#ifndef RapifireMqttClient_h
#define RapifireMqttClient_h

#ifndef MQTT_MAX_PACKET_SIZE
#define MQTT_MAX_PACKET_SIZE 256
#endif

#include <Client.h>
#include <PubSubClient.h>

/** 
 *  RAPIFIRE domain.
 */
const char RAPIFIRE_HOST[] = "mqtt.rapifire.com";
/**
 * Default MQTT port.
 */
const uint16_t RAPIFIRE_PORT = 1883;

/**
 * Max size of a single MQTT message.
 * 
 * 256 (MQTT_MAX_PACKET_SIZE) - 8 (MQTT Headers) - 8 (JSON const part)
 */
const int RAPIFIRE_MAX_MSG_SIZE = MQTT_MAX_PACKET_SIZE - 16;

/** 
 *  RAPIFIRE MQTT Client class.
 */
class RapifireMqttClient
{
  private:
    PubSubClient pubsub;
    const char* _thingId;<commit_msg>Don't overwrite MQTT_MAX_PACKET_SIZE in .h file<commit_after>#ifndef RapifireMqttClient_h
#define RapifireMqttClient_h

#include <Client.h>
#include <PubSubClient.h>

/** 
 *  RAPIFIRE domain.
 */
const char RAPIFIRE_HOST[] = "mqtt.rapifire.com";
/**
 * Default MQTT port.
 */
const uint16_t RAPIFIRE_PORT = 1883;

/**
 * Max size of a single MQTT message.
 * 
 * 128 (MQTT_MAX_PACKET_SIZE) - 8 (MQTT Headers) - 8 (JSON const part)
 */
const int RAPIFIRE_MAX_MSG_SIZE = MQTT_MAX_PACKET_SIZE - 16;

/** 
 *  RAPIFIRE MQTT Client class.
 */
class RapifireMqttClient
{
  private:
    PubSubClient pubsub;
    const char* _thingId;
{'fraction_non_alphanumeric': 0.11085271317829458, 'fraction_numerical': 0.02248062015503876, 'mean_word_length': 4.003875968992248, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4078173', 'n_tokens_mistral': 561, 'n_tokens_neox': 522, 'n_words': 118}