|
@@ -1,6 +1,7 @@
|
|
#include "displayAndSend.h"
|
|
#include "displayAndSend.h"
|
|
#include "ssd1306.h"
|
|
#include "ssd1306.h"
|
|
#include "ssd1306_driver.h"
|
|
#include "ssd1306_driver.h"
|
|
|
|
+#include "mqtt.h"
|
|
#include "esp_log.h"
|
|
#include "esp_log.h"
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <string.h>
|
|
@@ -81,6 +82,8 @@ void displayAndSendTask(void *pvParameters) {
|
|
SSD1306_SetPosition(127-(strlen(txt)*8),33);
|
|
SSD1306_SetPosition(127-(strlen(txt)*8),33);
|
|
SSD1306_Puts(txt, &Font_7x10,SSD1306_COLOR_WHITE);
|
|
SSD1306_Puts(txt, &Font_7x10,SSD1306_COLOR_WHITE);
|
|
SSD1306_UpdateScreen();
|
|
SSD1306_UpdateScreen();
|
|
|
|
+ sprintf(txt,"%.5f",data.dData);
|
|
|
|
+ sendMQTTMessage("sensors/TEST/energy/electricalTotal", txt);
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|