<commit_before>#include <iotecoclient.h>

#define APP_NAME    "GarageDoor"
#define WLAN_SSID       "Roar_Etne"
#define WLAN_PASS       "<PASSWORD>"
#define AIO_SERVER      "192.168.10.203"
#define AIO_SERVERPORT  1883
const int version[] = { 1, 0, 0, 0 };


#define PIN_LED 5
bool isLedOn = false;

void setup() {

  Serial.begin(9600);
  while (!Serial);
  pinMode(PIN_LED, OUTPUT);
  digitalWrite(PIN_LED, isLedOn);
  
  IoTEcoClient.begin(APP_NAME, version, WLAN_SSID, WLAN_PASS, AIO_SERVER, AIO_SERVERPORT, Serial);
  IoTEcoClient.setMqttMessageCallback(mqttMessageReceived);
  
  Serial.println("Setup complete");
}


void loop() {
  IoTEcoClient.loop();
  // do any other business
}


void mqttMessageReceived(JsonObject& json)
{<commit_msg>Signed-off-by: <NAME> <<NAME>><commit_after>#include <iotecoclient.h>

#define APP_NAME    "mySEnsorApp"
#define WLAN_SSID       "myAccessPoint"
#define WLAN_PASS       "<PASSWORD>"
#define AIO_SERVER      "myMQTTAddress"
#define AIO_SERVERPORT  1883
const int version[] = { 1, 0, 0, 0 };


#define PIN_LED 5
bool isLedOn = false;

void setup() {

  Serial.begin(9600);
  while (!Serial);
  pinMode(PIN_LED, OUTPUT);
  digitalWrite(PIN_LED, isLedOn);
  
  IoTEcoClient.begin(APP_NAME, version, WLAN_SSID, WLAN_PASS, AIO_SERVER, AIO_SERVERPORT, Serial);
  IoTEcoClient.setMqttMessageCallback(mqttMessageReceived);
  
  Serial.println("Setup complete");
}


void loop() {
  IoTEcoClient.loop();
  // do any other business
}


void mqttMessageReceived(JsonObject& json)
{
{'fraction_non_alphanumeric': 0.12409240924092409, 'fraction_numerical': 0.02442244224422442, 'mean_word_length': 4.656716417910448, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3515198', 'n_tokens_mistral': 611, 'n_tokens_neox': 570, 'n_words': 120}