Ds1820 simple+full as separate drivers (#1705)

* Seperate simple and full driver, introduce "common" for shared code

* Fix command prefixes

* Generate command as multiline if requested

* Fix JS linebreak

* Only use simple dirver - check sizes of firmware images

* Update obk_config.h - enable Full driver for all platforms to allow testing

* Change parsing sttring to device address to allow compact form
Change obk_config.h: remove extra entry for W800, add "FULL" driver to windows build

* fix windows code for "fake" DS18B20

* fix missing files in openBeken_win32_mvsc2017.vcxproj

* fix handle missing task.h for windows

* change Windows emulation to MAX/2 fake sensors

* try fix BL602

* change "fake temperature" of sensors in windows

* change windows sensor temperature once more

* shorten commands by alias

* fix escaping linebreak

* Fix broken JS code ...

* Fix ESP32 is crashing if interrupts are disabled during OWReset for > 480us

* Change output for unused channels
Test if DS1820 channels are in use

* fix warning/error for channel (<=64) printed into a char[5] value

* removeunuses quotes for address

* Fix language

* Capial "S" in Menu entry "Sensors"

* restore obk_config - #define ENABLE_DRIVER_DS1820_FULLonly for WINDOWS and SENSORS variant
This commit is contained in:
MaxineMuster
2025-07-19 08:03:46 +02:00
committed by GitHub
parent 1fe6ab74ed
commit 1c7cdd4881
16 changed files with 1366 additions and 855 deletions

View File

@ -2615,6 +2615,9 @@ int http_fn_cfg(http_request_t* request) {
postFormAction(request, "cfg_wifi", "Configure WiFi &amp; Web");
#if ENABLE_HTTP_IP
postFormAction(request, "cfg_ip", "Configure IP");
#endif
#if (ENABLE_DRIVER_DS1820_FULL)
postFormAction(request, "cfg_ds18b20", "Configure DS18B20 Sensors");
#endif
postFormAction(request, "cfg_mqtt", "Configure MQTT");
#if ENABLE_HTTP_NAMES

View File

@ -855,6 +855,12 @@ int HTTP_ProcessPacket(http_request_t* request) {
#if ENABLE_HTTP_IP
if (http_checkUrlBase(urlStr, "cfg_ip")) return http_fn_cfg_ip(request);
#endif
#if (ENABLE_DRIVER_DS1820_FULL)
// including "../driver/drv_ds1820_simple.h" will complain about typedefs not used here
// so lets declare it "extern"
extern int http_fn_cfg_ds18b20(http_request_t* request);
if (http_checkUrlBase(urlStr, "cfg_ds18b20")) return http_fn_cfg_ds18b20(request);
#endif
#if ENABLE_HTTP_WEBAPP
if (http_checkUrlBase(urlStr, "cfg_webapp")) return http_fn_cfg_webapp(request);