Add async mqtt connection
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user