- Implemented GPS functionality with initialization and reading latitude and longitude. - Added MAX7219 display support, including initialization, text display, animation control, and brightness settings. - Integrated BME280 sensor for reading temperature, pressure, and humidity. - Developed MQ7 sensor interface for reading gas concentration values. - Created HTTP client for GET and POST requests. - Implemented MQTT client for message handling and connection management. - Added JSON serialization and deserialization functions for sensor and actuator data. - Established WiFi connection setup for network communication.
20 lines
426 B
C++
20 lines
426 B
C++
#include <Arduino.h>
|
|
|
|
#define SERVER_IP "https://contaminus.miarma.net/api/v1/"
|
|
#define REST_PORT 443
|
|
#define MQTT_PORT 1883
|
|
|
|
#include "JsonTools.hpp"
|
|
#include "RestClient.hpp"
|
|
#include "WifiConnection.hpp"
|
|
#include "MqttClient.hpp"
|
|
#include "BME280.hpp"
|
|
#include "GPS.hpp"
|
|
#include "MAX7219.hpp"
|
|
#include "MQ7.hpp"
|
|
|
|
uint32_t getChipID();
|
|
void prettyReadMQ7();
|
|
void prettyReadBME280();
|
|
void prettyReadGPS();
|
|
void testMatrix(); |