mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
2
mqtt.ino
2
mqtt.ino
@@ -120,7 +120,7 @@ void callback(char* topic, byte * payload, unsigned int length) {
|
||||
if (str == "HELLO") outcoming_date();
|
||||
|
||||
//превращает название топика в команду, а значение в параметр команды
|
||||
if (topic_str.indexOf("control") > 0) { //IoTmanager/800324-1458415/button1/control 1 //IoTmanager/800324-1458415/button99/control 1
|
||||
if (topic_str.indexOf("control") > 0) { //IoTmanager/800324-1458415/button-sw2/control 1 //IoTmanager/800324-1458415/button99/control 1
|
||||
String topic = selectFromMarkerToMarker(topic_str, "/", 3); //button1 //button99
|
||||
topic = add_set(topic); //buttonSet1 //buttonSet99
|
||||
String number = selectToMarkerLast(topic, "Set"); //1 //99
|
||||
|
||||
12
set.h
12
set.h
@@ -9,12 +9,12 @@ boolean mb_4_of_memory = true;
|
||||
//#define layout_in_ram
|
||||
#define UDP_enable
|
||||
/*==========================SENSORS===============================*/
|
||||
#define level_enable
|
||||
#define analog_enable
|
||||
#define dallas_enable
|
||||
#define dht_enable //подъедает оперативку сука
|
||||
#define bmp_enable
|
||||
#define bme_enable
|
||||
//#define level_enable
|
||||
//#define analog_enable
|
||||
//#define dallas_enable
|
||||
//#define dht_enable //подъедает оперативку сука
|
||||
//#define bmp_enable
|
||||
//#define bme_enable
|
||||
/*=========================LOGGING================================*/
|
||||
#define logging_enable
|
||||
/*==========================GEARS=================================*/
|
||||
|
||||
Reference in New Issue
Block a user