JXCT Soil Sensor 7-in-1 v3.4.9 (June 2025)
Professional IoT soil monitoring system with ESP32, Modbus RTU, MQTT, and advanced compensation algorithms
|
#include <WiFiClient.h>
#include "thingspeak_client.h"
#include "modbus_sensor.h"
#include "wifi_manager.h"
#include <ThingSpeak.h>
#include "jxct_device_info.h"
#include "jxct_config_vars.h"
#include "jxct_format_utils.h"
#include "logger.h"
#include <NTPClient.h>
#include <ctype.h>
Функции | |
static void | trim (char *s) |
const char * | getThingSpeakLastPublish () |
const char * | getThingSpeakLastError () |
void | setupThingSpeak (WiFiClient &client) |
bool | sendDataToThingSpeak () |
Переменные | |
NTPClient * | timeClient |
const char * | THINGSPEAK_API_URL = "https://api.thingspeak.com/update" |
static unsigned long | lastTsPublish = 0 |
static int | consecutiveFailCount = 0 |
static char | thingSpeakLastPublishBuffer [32] = "0" |
static char | thingSpeakLastErrorBuffer [64] = "" |
const char * getThingSpeakLastError | ( | ) |
См. определение в файле thingspeak_client.cpp строка 44
Перекрестные ссылки thingSpeakLastErrorBuffer.
Используется в sendHealthJson() и sendServiceStatusJson().
const char * getThingSpeakLastPublish | ( | ) |
См. определение в файле thingspeak_client.cpp строка 40
Перекрестные ссылки thingSpeakLastPublishBuffer.
Используется в sendHealthJson() и sendServiceStatusJson().
bool sendDataToThingSpeak | ( | ) |
См. определение в файле thingspeak_client.cpp строка 54
Перекрестные ссылки config, consecutiveFailCount, format_ec(), format_moisture(), format_npk(), format_ph(), format_temperature(), lastTsPublish, logData(), logDebug(), logError(), logSuccess(), logWarn(), sensorData, thingSpeakLastErrorBuffer, thingSpeakLastPublishBuffer, trim() и wifiConnected.
Используется в loop().
void setupThingSpeak | ( | WiFiClient & | client | ) |
См. определение в файле thingspeak_client.cpp строка 49
Используется в setup().
|
static |
См. определение в файле thingspeak_client.cpp строка 21
Используется в sendDataToThingSpeak().
|
static |
См. определение в файле thingspeak_client.cpp строка 18
Используется в sendDataToThingSpeak().
|
static |
См. определение в файле thingspeak_client.cpp строка 17
Используется в sendDataToThingSpeak().
const char* THINGSPEAK_API_URL = "https://api.thingspeak.com/update" |
См. определение в файле thingspeak_client.cpp строка 15
|
static |
См. определение в файле thingspeak_client.cpp строка 37
Используется в getThingSpeakLastError() и sendDataToThingSpeak().
|
static |
См. определение в файле thingspeak_client.cpp строка 36
Используется в getThingSpeakLastPublish() и sendDataToThingSpeak().