Hi, Chris
I seem to be getting further and further away. While the first BME_SensorObject file uploaded, this .ino file gives the following error messages:
C:\Users\baran\Downloads\BME_SensorObject2\BME_SensorObject2.ino: In function 'void updateValues()':
C:\Users\baran\Downloads\BME_SensorObject2\BME_SensorObject2.ino:69:24: error: cannot convert 'char*' to 'double'
dtostrf(sTemperature,8,2,Temperature);
^~~~~~~~~~~~
In file included from C:\Users\baran\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.16\cores\esp32/Arduino.h:40,
from C:\Users\baran\AppData\Local\Temp\arduino\sketches\87EF2D283F16D9ED935333F8DDBBE296\sketch\BME_SensorObject2.ino.cpp:1:
C:\Users\baran\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.16\cores\esp32/stdlib_noniso.h:46:23: note: initializing argument 1 of 'char* dtostrf(double, int, unsigned int, char*)'
char* dtostrf (double val, signed int width, unsigned int prec, char s);
~~~~~^
C:\Users\baran\Downloads\BME_SensorObject2\BME_SensorObject2.ino:70:24: error: cannot convert 'char' to 'double'
dtostrf(sHumidity,8,2,Humidity);
^~~~~~~~~
In file included from C:\Users\baran\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.16\cores\esp32/Arduino.h:40,
from C:\Users\baran\AppData\Local\Temp\arduino\sketches\87EF2D283F16D9ED935333F8DDBBE296\sketch\BME_SensorObject2.ino.cpp:1:
C:\Users\baran\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.16\cores\esp32/stdlib_noniso.h:46:23: note: initializing argument 1 of 'char* dtostrf(double, int, unsigned int, char*)'
char* dtostrf (double val, signed int width, unsigned int prec, char s);
~~~~~^
C:\Users\baran\Downloads\BME_SensorObject2\BME_SensorObject2.ino:71:24: error: cannot convert 'char' to 'double'
dtostrf(sPressure,8,2,Pressure);
^~~~~~~~~
In file included from C:\Users\baran\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.16\cores\esp32/Arduino.h:40,
from C:\Users\baran\AppData\Local\Temp\arduino\sketches\87EF2D283F16D9ED935333F8DDBBE296\sketch\BME_SensorObject2.ino.cpp:1:
C:\Users\baran\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.16\cores\esp32/stdlib_noniso.h:46:23: note: initializing argument 1 of 'char* dtostrf(double, int, unsigned int, char*)'
char* dtostrf (double val, signed int width, unsigned int prec, char *s);
~~~~~^
exit status 1
Compilation error: cannot convert 'char*' to 'double'
I guess I could just fall back onto the 0x181A series of environmental codes (0x2A6D, 0x2A6E, and 0x2A6F) for pressure, temperature, and humidity respectively, and calculate everything else on the app side. Of course, if I go the calc on the app route, I would be just as happy using the clocked (3) characteristics app that you modified for me.
Regarding the psychrometer app, it shuts down pretty much as soon as I press the connect button. I press connect, the serial monitor starts generating data, and the app disconnects.