Measuring internal temp of oysters and mussel

Hi there,

All other problems like proper SPI configuration or appropriate TTN-Cayenne en-/decoding aside, but specifically regarding a possible

when reading from sensors while there’s something running side-by-side like the LMIC runtime.

It might imagine that - while appropriately handling the interrupts like already depicted above - you might also want to do the reading in an asynchronous way in order not to block the LMIC machinery.

When doing this in a way like depicted at getTemperature, you are in control of handling the conversion time required for reading the sensor and thus you can feed other runtimes or watchdogs appropriately in order not to block them. While this gains more flexibility, it is your responsibility then to apply a minimum time of 750ms for conversion between requesting the reading and actually reading it.

With kind regards,
Andreas.


P.S.: This answer was originally intended to be addressed to you over at Conflict between RFM95W/LMIC and DS18B20 temperature, @TijnOnlijn. So, if you still experience such timing problems you were talking about, this might help you along.

1 Like