Mainly for me it is a way to circumvent the lack of control widgets on the dashboard.
I can change operation modes, start statistical reports, start a charge cycle, reset counters…
All that would require quite a lot of code and variables if one would want to do it from the dashboard wifget by widget…
My device software can be controlled over serial with simple one byte commands, that works well with a physical connection, but not remotely.
I have also tried to use the terminal passively permanently printing a line every second.
The connection looks successful, but the terminal issues:
Which resource is supposed to be defined?
#include <ThingerESP32.h> #include <ThingerConsole.h>
ThingerESP32 thing(THINGER_USERNAME, THINGER_DEVICE, THINGER_DEVICE_CREDENTIALS); ThingerConsole console(thing);
and finally in Loop() every second:
console.printf("Vset:%06.3f Vout:%06.3f Iset:%06.3f Iout:%06.3f Wout:%+07.3f\n", dashboard.Vset, dashboard.Vout, dashboard.Iset, dashboard.Iout, dashboard.Wout);
Where am I supposed to define a resource?
Thank you for your support, it is much appreciated.