EnviroDIY / Arduino-SDI-12

An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
https://github.com/EnviroDIY/Arduino-SDI-12/wiki
BSD 3-Clause "New" or "Revised" License
158 stars 100 forks source link

[Issue #66] ESP32/8266 Support #67

Closed peterj43 closed 4 years ago

peterj43 commented 4 years ago

ESP32/8266 Has a micro second free running timer so we have no need to configure a time for these.

  1. Change the names to the states prefixing them with SDI12_ to eliminate conflict with ESP hal files .
  2. Created a new READTIME macro to replace TCNTX this id defined in SDI12.h This helps to reduce the conditional platform specific code from the main driver files.
  3. Introduced a typedef conditional on platform for the READ TIME value.