[SYS] Add timestamp for messages (#1677)
* add timestamp for RTL_433 messages - add timestamp when puglishing - add "GMT" as timezone for timestamp * move timestamp publishing to main.ino
This commit is contained in:
2 files changed
+12
-18
No files matched your search
@@ -692,14 +692,6 @@ void procBLETask(void* pvParameters) {
|
||||
String mac_adress = advertisedDevice->getAddress().toString().c_str();
|
||||
mac_adress.toUpperCase();
|
||||
BLEdata["id"] = (char*)mac_adress.c_str();
|
||||
# if defined(ESP8266) || defined(ESP32)
|
||||
# if message_UTCtimestamp == true
|
||||
BLEdata["UTCtime"] = UTCtimestamp();
|
||||
# endif
|
||||
# if message_unixtimestamp == true
|
||||
BLEdata["unixtime"] = unixtimestamp();
|
||||
# endif
|
||||
# endif
|
||||
BLEdata["mac_type"] = advertisedDevice->getAddress().getType();
|
||||
BLEdata["adv_type"] = advertisedDevice->getAdvType();
|
||||
Log.notice(F("Device detected: %s" CR), (char*)mac_adress.c_str());
|
||||
|
||||
Reference in new issue
Block a user