fixed rest on cpp; added batch endpoint
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user