 
 #include <ESP8266wifi.h>
 #include <PubSubClient.h>
+
 #include <SoftwareSerial.h>
+#include <SPI.h>
+#include <WiFi.h>
+#include <WiFiClient.h>
 
 /************************* Configuration *********************************/
 
-const char* ssid = "xxxxxxx";
-const char* password = "xxxxxxxxxxx";
+char ssid[] = "xxxxx";
+char password []= "xxxx";
+
 const char* mqtt_server = "192.10.10.2";
 const int mqtt_port = 8083;
 
 /************************* End configuration *****************************/
 
-
 WiFiClient wifiClient;
 PubSubClient mqttClient;
 
+char message_buff[100];
 
 SoftwareSerial cptSerial(2, 3);
 


  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();
