 
 }
 
-char character;
+String inputString = "";
 
 void loop() {
   if (cptSerial.available()) {
-    char teleinfo = cptSerial.read() & 0x7F;
-    client.publish("/jarvis/sensor/teleinfo", teleinfo);
+    char inChar = (char)Serial.read();
+    inputString += inChar;
+    if (inChar == '\n') {
+      //mqttClient.publish("/jarvis/sensor/teleinfo", inputString);
+    }
+    //char teleinfo = cptSerial.read() & 0x7F;
   }
 }


  delay(10);
  // We start by connecting to a WiFi network
  Serial.printf("[Jarvis] Connecting to : %s\n", ssid);

  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {



void setup() {
  Serial.begin(9600);
  cptSerial.begin(1200);
  setup_wifi();
  setup_mqtt();
