Update WiFi credentials, modify DEVICE_ROLE to SENSOR, and refactor GROUP_ID initialization; enhance MQ7_Read_Fake logic
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <WiFi.h>
|
||||
#include <PubSubClient.h>
|
||||
|
||||
#define SSID "DIGIFIBRA-D2ys"
|
||||
#define WIFI_PASSWORD "4EEATsyTcZ"
|
||||
#define SSID "iPhone de Jose"
|
||||
#define WIFI_PASSWORD "bombardeenlaus"
|
||||
|
||||
int WiFi_Init();
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#define DEVICE_ROLE ACTUATOR // se cambia entre SENSOR y ACTUATOR
|
||||
#define DEVICE_ROLE SENSOR // se cambia entre SENSOR y ACTUATOR
|
||||
|
||||
#define MQTT_URI "miarma.net"
|
||||
#define API_URI "https://contaminus.miarma.net/api/v1/"
|
||||
@@ -18,5 +18,5 @@
|
||||
#define DEBUG
|
||||
|
||||
extern const uint32_t DEVICE_ID;
|
||||
extern const int GROUP_ID;
|
||||
extern int GROUP_ID;
|
||||
extern String currentMessage;
|
||||
@@ -46,4 +46,5 @@ void readGPS();
|
||||
void writeMatrix(const char *message);
|
||||
void printAllData();
|
||||
void sendSensorData();
|
||||
uint32_t getChipID();
|
||||
uint32_t getChipID();
|
||||
int getGroupId(int deviceId);
|
||||
Reference in New Issue
Block a user