Skip to content

Commit 1f32fba

Browse files
authored
Update s8_m5.ino
1 parent 27b023c commit 1f32fba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

s8_m5.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SoftwareSerial s8_Serial(13,14); //connect rx & tx from s8 to GPIO pins 13 & 14
99

1010
byte readCO2[] = {0xFE, 0X44, 0X00, 0X08, 0X02, 0X9F, 0X25}; //Command packet to read Co2
1111
byte response[] = {0,0,0,0,0,0,0};
12-
int valMultiplier = 1;
12+
int valMultiplier = 1; //different models of sensor need other values here
1313

1414
const char* mqtt_server = "IP_OF_MQTT_BROKER";
1515
const char* mqtt_port = "PORT_OF_MQTT_BROKER";
@@ -19,7 +19,6 @@ WiFiClient client;
1919
Adafruit_MQTT_Client mqtt(&client, mqtt_server, mqtt_port);
2020
#define FEED "esp32/co2"
2121
Adafruit_MQTT_Publish co2 = Adafruit_MQTT_Publish(&mqtt, FEED);
22-
TFT_eSprite disp(&M5.Lcd);
2322

2423
void setup()
2524
{

0 commit comments

Comments
 (0)