mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-22 05:02:07 +02:00
Add Serial Nr into log
This commit is contained in:
@ -475,6 +475,7 @@ static void pmPoll(void);
|
||||
static void sendDataToServer(void);
|
||||
static void tempHumPoll(void);
|
||||
static void co2Poll(void);
|
||||
static void showNr(void);
|
||||
|
||||
/** Init schedule */
|
||||
AgSchedule dispLedSchedule(DISP_UPDATE_INTERVAL, updateDispLedBar);
|
||||
@ -488,6 +489,7 @@ AgSchedule tvocSchedule(SENSOR_TVOC_UPDATE_INTERVAL, tvocPoll);
|
||||
void setup() {
|
||||
/** Serial fore print debug message */
|
||||
Serial.begin(115200);
|
||||
showNr();
|
||||
|
||||
/** Init I2C */
|
||||
Wire.begin(ag.getI2cSdaPin(), ag.getI2cSclPin());
|
||||
@ -646,6 +648,10 @@ static void co2Poll(void) {
|
||||
Serial.printf("CO2 index: %d\r\n", co2Ppm);
|
||||
}
|
||||
|
||||
static void showNr(void) {
|
||||
Serial.println("Serial nr: " + getDevId());
|
||||
}
|
||||
|
||||
static void sendPing() {
|
||||
JSONVar root;
|
||||
root["wifi"] = WiFi.RSSI();
|
||||
|
Reference in New Issue
Block a user