The build is mega-20220809_57b0c0c.
I checked "Allow TaskValueSet on all plugins" on Tools/Advanced page.
I added the delay on the arduino, here is the full sketch:
Code: Select all
#include "max6675.h"
// Temperature Sensor1
int thermoD0 = 12; // so
int thermo1CS = 4;
int thermoCLK = 13; // sck
float temp1 = 0;
MAX6675 thermocouple1(thermoCLK, thermo1CS, thermoD0);
// Temperature Sensor2
int thermo2CS = 5;
float temp2 = 0;
MAX6675 thermocouple2(thermoCLK, thermo2CS, thermoD0);
void setup()
{
Serial.begin(19200);
delay(1000);
}
void loop()
{
// Read both temps first before sending, so they're taken nearly at the same moment.
const float temp1 = thermocouple1.readCelsius();
const float temp2 = thermocouple2.readCelsius();
Serial.println(""); // Clear some of the buffer and make sure ESPEasy will not see a command starting with some left-over data.
delay(100); // Give ESPEasy time to read all from the serial buffers
Serial.print("TaskValueSet,1,1,");
Serial.println(String(temp1,2));
delay(100); // Give ESPEasy time to read all from the serial buffers and process the command
Serial.print("TaskValueSet,1,2,");
Serial.println(String(temp2,2));
}
It looks ok in putty but with the same problems in esp side logs:
Code: Select all
289000: Line: _TaskValueSet,1,2TaskValueSet,1,1,27.25_
289003: Command not executed! See: https://github.com/letscontrolit/ESPEasy/issues/2724
289010: Command unknown: TaskValueSet,1,2TaskValueSet,1,1,27.25
289304: Too many arguments: cmd=TaskValueSet Arg1=1 Arg2=1TaskValueSet Arg3=1 ExtraArg4=2 ExtraArg5=29.00 lineLength=38
289307: Line: _TaskValueSet,1,1TaskValueSet,1,2,29.00_
289310: Command not executed! See: https://github.com/letscontrolit/ESPEasy/issues/2724
289317: Command unknown: TaskValueSet,1,1TaskValueSet,1,2,29.00
290721: Too many arguments: cmd=TaskValueSet Arg1=1TaskValueSet Arg2=1 Arg3=2 ExtraArg4=29.00 lineLength=36
290724: Line: _TaskValueSet,1TaskValueSet,1,2,29.00_
290728: Command not executed! See: https://github.com/letscontrolit/ESPEasy/issues/2724
290738: Command unknown: TaskValueSet,1TaskValueSet,1,2,29.00
292042: Too many arguments: cmd=TaskValueSet Arg1=1 Arg2=2TaskValueSet Arg3=1 ExtraArg4=1 ExtraArg5=27.50 lineLength=38
292045: Line: _TaskValueSet,1,2TaskValueSet,1,1,27.50_
292048: Command not executed! See: https://github.com/letscontrolit/ESPEasy/issues/2724
292055: Command unknown: TaskValueSet,1,2TaskValueSet,1,1,27.50
292346: Command unknown: TaskValueSTaskValueSet,1,2,29.00
293763: Too many arguments: cmd=TaskValueSet Arg1=1 Arg2=1TaskValueSet Arg3=1 ExtraArg4=2 ExtraArg5=28.75 lineLength=38
293767: Line: _TaskValueSet,1,1TaskValueSet,1,2,28.75_
293770: Command not executed! See: https://github.com/letscontrolit/ESPEasy/issues/2724
293779: Command unknown: TaskValueSet,1,1TaskValueSet,1,2,28.75
And in putty:
Code: Select all
TaskValueSet,1,1,27.50
TaskValueSet,1,2,28.25
TaskValueSet,1,1,27.50
TaskValueSet,1,2,29.25