Log tags changed
This commit is contained in:
parent
5c191a269f
commit
55e0c73c77
@ -1,7 +1,7 @@
|
||||
#include "globals.h"
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
#ifdef HAS_BATTERY_PROBE
|
||||
esp_adc_cal_characteristics_t *adc_characs =
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "bme680mems.h"
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
bmeStatus_t bme_status;
|
||||
TaskHandle_t BmeTask;
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "button.h"
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
void readButton() {
|
||||
ESP_LOGI(TAG, "Button pressed");
|
||||
|
@ -7,7 +7,7 @@
|
||||
#endif
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
uint16_t salt;
|
||||
|
||||
|
@ -31,7 +31,7 @@ int volatile contentLength = 0;
|
||||
bool volatile isValidContentType = false;
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
// helper function to extract header value from header
|
||||
inline String getHeaderValue(String header, String headerName) {
|
||||
|
@ -290,7 +290,9 @@ void PayloadConvert::writeBitmap(bool a, bool b, bool c, bool d, bool e, bool f,
|
||||
}
|
||||
|
||||
/* ---------------- Cayenne LPP 2.0 format ---------- */
|
||||
// see specs http://community.mydevices.com/t/cayenne-lpp-2-0/7510
|
||||
// see specs
|
||||
// http://community.mydevices.com/t/cayenne-lpp-2-0/7510 (LPP 2.0)
|
||||
// https://github.com/myDevicesIoT/cayenne-docs/blob/master/docs/LORA.md (LPP 1.0)
|
||||
// PAYLOAD_ENCODER == 3 -> Dynamic Sensor Payload, using channels -> FPort 1
|
||||
// PAYLOAD_ENCODER == 4 -> Packed Sensor Payload, not using channels -> FPort 2
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "rcommand.h"
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
// helper function
|
||||
void do_reset() {
|
||||
|
@ -34,9 +34,13 @@ void SendPayload(uint8_t port, sendprio_t prio) {
|
||||
}
|
||||
memcpy(SendBuffer.Message, payload.getBuffer(), payload.getSize());
|
||||
|
||||
// enqueue message in device's send queues
|
||||
// enqueue message in device's send queues
|
||||
#ifdef HAS_LORA
|
||||
lora_enqueuedata(&SendBuffer, prio);
|
||||
#endif
|
||||
#ifdef HAS_SPI
|
||||
spi_enqueuedata(&SendBuffer, prio);
|
||||
#endif
|
||||
|
||||
} // SendPayload
|
||||
|
||||
@ -130,6 +134,10 @@ void sendCounter() {
|
||||
} // sendCounter()
|
||||
|
||||
void flushQueues() {
|
||||
#ifdef HAS_LORA
|
||||
lora_queuereset();
|
||||
#endif
|
||||
#ifdef HAS_SPI
|
||||
spi_queuereset();
|
||||
#endif
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
#include "globals.h"
|
||||
|
||||
// Local logging tag
|
||||
static const char TAG[] = "main";
|
||||
static const char TAG[] = __FILE__;
|
||||
|
||||
#define SENSORBUFFER \
|
||||
10 // max. size of user sensor data buffer in bytes [default=20]
|
||||
|
Loading…
Reference in New Issue
Block a user