Look-up tables were used for determining the delay loop counts before.
Based on these hand-tuned values, the loop overhead was estimated for
each option -- 80 and 160 MHz, fast and slow GPIO access. Instead of the
great number of tunable parameters one now only has to tune the overhead
values if the code is changed.
Functions were added to the API which allow setting an arbitrary
frequency. API backward compatibility is retained.
i2c: fix potential overflow situation
* The mdns responder has been reworked to lower stack and memory usage. This is
a variation on the upstream code, it use malloc whereas the upstream code uses
pools. The high stack usage of the mdns responder was problem for
esp-open-rtos, so we might have to maintain the differences for now.
* Improved lwip core locking, and lock checking. Upstream improvements, that
need some added support from esp-open-rtos specific code. More core lock is
performed when calling from the esp-open-rtos code now, so a little safer. The
checking is not enforced, but projects might see warning messages and might
want to look into them.
* The esp-open-rtos lwip support has been sync'ed with the new freertos port
included with lwip. There are still some minor differences.
* A few lwip timer bugs have been resolved. This might help resolve some issues.
* Plus it picks up all the other upstream fixes and improvements.
* The default lwip stack has been lowered from 768 words to 480 words,
due to the reduced stack usage by the mdns responder.
- GPIO_ID_PIN macros removed
- Soft reset mechanism of SHT3x does not work when sensor is in any measurement mode. Therefore, it does not abort initialization procedure anymore
- typos
- changes to use the same source code with ESP8266 (esp-open-rtos) and ESP32 (ESP-IDF)
* wificfg: remove the AP WEP mode option
The WEP mode does not appear to be implement in the sdk for the AP mode, and
defaults to open when WEP is requested which is probably not intended. Remove
the WEP option from the wifi config interface.
* lwip: enable mdns dns queries.
* wificfg: support mDNS on the softAP interface.
* Adds ipv6 support. Compiles with ipv6 enabled and then accepts ipv6
connections and answers AAAA questions.
* Fixes a few overflows of the reply buffer. Reduce the default reply buffer
size, name it MDNS_RESPONDER_REPLY_SIZE, and allow overriding.
* Fix mdns_add_TXT.
* Prefer malloc to large stack buffers, to control stack sizes, and try to
malloc only the buffer size needed where known in advance.
* Determine the IP addresses when responding, eliminating the update function
and the update task.
* Allow use in SoftAP and StationAP mode too.
* Fix to compile without the debug output.
* Slightly better integration with lwip.
* Accept a NULL TXT entry.
* Some code style changes, not comprehensive.
* When IPv6 is enabled the http server and the captive portal dns now also
accept IPv6 connections. The interface and peer IPv6 address are now also
reported.
* The http server no longer redirects <name>.local to an IP address for better
integration with mDNS.
* Add mDNS support, for the extras/mdnsresponder or the LWIP mDNS responder,
and enable the LWIP mDNS responder for examples/wificfg.
* libesphttpd: added extras and example
* Added "heatshrink" as a submodule
* Updated libesphttpd
* Updated libesphttpd
* Trying to fix the commit id
* Updated libesphttpd
* Added zlib1g-dev package
* Use native gcc to build mkespfsimage and mkupgimg
* Added NS and GW for DHCP server configuration
* Making libeshttpd up-to-date
* Making libeshttpd up-to-date (heatshrink updated)
* Making libesphttpd up-to-date
* pwm fix special state + debug print + IRAM interupt
* Special state = don't set timer, safer
* fix timer crash, cant divide by 0
* pwm dont start when duty is set
* reverse option
* fix low duty crash + comments
The commit ebdd2f9 defined some offsets to differentiate between the
standard, socket and file descriptors.
SPIFFS_FILEHDL_OFFSET was updated accordingly but the code didn't use
that constant and this broke the SPIFFS POSIX API.
Fix it by initializing the fh_ix_offset field of the spiffs_config
structure to SPIFFS_FILEHDL_OFFSET.
* libesphttpd: added extras and example
* Added "heatshrink" as a submodule
* Updated libesphttpd
* Updated libesphttpd
* Trying to fix the commit id
* Updated libesphttpd
* Added zlib1g-dev package
* Use native gcc to build mkespfsimage and mkupgimg
* Added NS and GW for DHCP server configuration
* Driver for Sensirion SHT3x sensor added
This is a driver for Sensirion SHT3x temperature and humidity sensors
connected via I2C.
This commit is a rebasing and contains some interface changes based on
the review from @ourairquality.
* SHT3x driver changes
Additional include to satisfy the Travis CI test build
* SHT3x driver - small changes
README.md has been shortened
* SHT3x driver - small changes
* SHT3x driver - small changes
- crc8 lookup table is now static to be held in flash memory
- special handling for the timer overflow in sht3x_is_measuring removed
- initialization reduced to availability check
* SHT3x driver - some small changes
- crc8 lookup table is now static to be held in flash memory
- special handling for the timer overflow in sht3x_is_measuring removed
- some whitespace removed
- initialization reduced to availability check
* SHT3x driver - some minor changes
- lookup tables made const to be held in flash
- crc8 computation changed to a non table lookup version
- measurement duration is now given in ticks and can be used directly
for vTaskDelay (documentation and examples changed accordingly)
* SHT3x driver - documentation changed
* SHT3x driver - minor correction
- number of ticks for measurement duration takes now into account
portTICK_PERIOD_MS
* SHT3x driver - minor correction
- number of ticks for measurement duration takes now into account
portTICK_PERIOD_MS
* SHT3x driver - minor correction
- number of ticks for measurement duration takes now into account
portTICK_PERIOD_MS
* SHT3x driver - minor correction
- number of ticks for measurement duration takes now into account
portTICK_PERIOD_MS
* SHT3x driver - minor corrections
* SHT3x driver - minor corrections
* Driver for Sensirion SHT3x sensor added
This is a driver for Sensirion SHT3x temperature and humidity sensors
connected via I2C.
This commit is a rebasing and contains some interface changes based on
the review from @ourairquality.
SHT3x driver changes
- additional include to satisfy the Travis CI test build
- README.md has been shortened
- special handling for the timer overflow in sht3x_is_measuring removed
- some whitespaces removed
- crc8 computation changed to a non table lookup version
- measurement duration is now given in ticks and can be used directly
for vTaskDelay (documentation and examples changed accordingly)
- number of ticks for measurement duration takes now into account
portTICK_PERIOD_MS
- clock stretching disabled on sensor to avoid blocking when data are
not ready to read
- calculation of maesurement duration adds now one and a half ticks to
be sure that measurement duration is not too short
- function sht3x_is_measuring is now private and only for internal use,
user task has always to use function vTaskDelay to wait for
measurement results
- function sht3x_is_measuring was simplified and returns now just a
boolean value
- private function sht3x_reset added which is used to reset the sensor
during initialization
- active flag in sensor data structure not needed anymore
- function sht3_get_raw_data simplified
- function sht3x_start_measurement returns now only a boolean
- function sht3x_start_measurement does not check anymore whether there is
already a measurment running
- new function sht3x_get_measurement_duration which returns the measurement
duration in ticks for configured repeatability
* SHT3x driver minor changes
- type sht3x_values_t replaced by separate float values
- additional repeatability parameter defined for function sht3x_start_measurement
- parameter of function sht3x_get_measurement_duration changed from
sht3x_sensort_t to sht3_repeat_t
- sensor modes and repeatability levels extended by prefix sht3x_
* SHT3x driver minor changes
- new high level function sht3x_measure added, it comprises all three
steps to perform one measurement in only one function
- example with two sensors removed
* SHT3x driver small correction
* Correct checking of the AP password and SSID lengths.
* Only enable AP mode if it is really configured enabled.
* Only start the http server if wifi is enabled.