mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
libretiny
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#include "classes/IoTDB.h"
|
||||
#include "utils/Statistic.h"
|
||||
#include "classes/IoTBench.h"
|
||||
#ifndef LIBRETINY
|
||||
#include <Wire.h>
|
||||
#endif
|
||||
#include "DebugTrace.h"
|
||||
#if defined(esp32s2_4mb) || defined(esp32s3_16mb)
|
||||
#include <USB.h>
|
||||
@@ -143,7 +145,7 @@ void setup() {
|
||||
#ifdef ESP32
|
||||
Wire.end();
|
||||
Wire.begin(pinSDA, pinSCL, (uint32_t)i2cFreq);
|
||||
#else
|
||||
#elif defined(ESP8266)
|
||||
Wire.begin(pinSDA, pinSCL);
|
||||
Wire.setClock(i2cFreq);
|
||||
#endif
|
||||
@@ -211,9 +213,10 @@ void setup() {
|
||||
|
||||
// запуск работы udp
|
||||
addThisDeviceToList();
|
||||
#ifdef UDP_ENABLED
|
||||
udpListningInit();
|
||||
udpBroadcastInit();
|
||||
|
||||
#endif
|
||||
// создаем событие завершения конфигурирования для возможности выполнения блока кода при загрузке
|
||||
createItemFromNet("onStart", "1", 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user