Add async mqtt connection

This commit is contained in:
2024-05-09 18:27:32 -06:00
parent a7189d3714
commit cffdf32735
2 changed files with 37 additions and 19 deletions

View File

@@ -3,8 +3,7 @@
#include <InternalFileSystem.h>
#include "HX711.h"
//#define calibration_factor -6980.0 // black wired load cell
#define calibration_factor -5760.0 // orange wired load cell
#define calibration_factor -6980.0 // black wired load cell
#define DOUT 30
#define CLK 27
@@ -91,7 +90,7 @@ void loop()
int reading = (int) scale.get_units();
String message = String(reading) + "\n";
message.toCharArray(buf, message.length()+1);
bleuart.write(buf, message.length()+1);
bleuart.write(buf, message.length());
delay(50);
}