mqtt status client hook-up

pull/47/head
Thorsten von Eicken 9 years ago
parent aecaa26c65
commit 19693a11ec
  1. 3
      esp-link/main.c
  2. 3
      user/user_main.c

@ -127,6 +127,7 @@ static char *flash_maps[] = {
char* esp_link_version = VERS_STR(VERSION);
extern void app_init(void);
extern void mqtt_client_init(void);
// Main routine to initialize esp-link.
void user_init(void) {
@ -177,5 +178,7 @@ void user_init(void) {
os_printf("** esp-link ready\n");
mqtt_client_init();
app_init();
}

@ -2,6 +2,8 @@
#include "cgiwifi.h"
#include "mqtt.h"
#if 0
MQTT_Client mqttClient;
static ETSTimer mqttTimer;
@ -31,7 +33,6 @@ void app_init() {
}
#if 0
MQTT_Client mqttClient;
void ICACHE_FLASH_ATTR

Loading…
Cancel
Save