1
0

fixed rest on cpp; added batch endpoint

This commit is contained in:
Jose
2025-05-10 07:43:30 +02:00
parent 0ce48c18e2
commit 8dc2787b80
10 changed files with 300 additions and 260 deletions

View File

@@ -7,15 +7,14 @@
#include "GPS.hpp"
String serializeSensorValue(
int sensorId,
int groupId,
const String &deviceId,
const String &sensorType,
const String &unit,
int sensorStatus,
int gpsSensorId,
int weatherSensorId,
int coSensorId,
const BME280Data_t &bme,
const MQ7Data_t &mq7,
const GPSData_t &gps,
long timestamp);
const GPSData_t &gps);
String serializeActuatorStatus(
int actuatorId,

View File

@@ -2,5 +2,5 @@
#include <HTTPClient.h>
void getRequest(HTTPClient &httpClient, const String url, String &response);
void postRequest(HTTPClient &httpClient, const String url, const String &payload, String &response);
void getRequest(const String url, String &response);
void postRequest(const String url, const String &payload, String &response);

View File

@@ -4,6 +4,8 @@
#define REST_PORT 443
#define MQTT_PORT 1883
#define GROUP_ID 1
#define MQ7_ID 1
#define BME280_ID 2
#define GPS_ID 3
@@ -48,4 +50,5 @@ void readBME280();
void readGPS();
void writeMatrix(const char *message);
void printAllData();
void sendSensorData();
uint32_t getChipID();