#define EWS Serial;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}
void kanha_ws()
{
if (EWS.available() > 0)
{
String mweight = ASCII_check(EWS.readStringUntil('='));
mweight.trim();
if (mweight[0] == 'L')
{
int i = mweight.indexOf('.');
if (i == 5)
{
// String tmp = mweight.substring(i - 3, i + 3);
String tmp = mweight.substring(1);
// // DEBUG.println(tmp);
quantity = tmp.toFloat();
send_str(2, 10, String(quantity) + String(" "));
// DEBUG.println("wt in kanha : " + String(quantity));
}
}
}
}