Hello, I tried to replicate the low power home network weather monitor using the Galaxia library and the available sensors library to program a CC1350 sensortag rev 1.5.1, but it fails to compile as the library (galaxia) doesn't seem to be compatible with that platform.
Using the default multitasking library, is not possible to get sensor readings using timer or clock, as the code inside the loop only executes once, or shows the same sensor readings despite using the get() function in the reading.
The only way it worked for me is using a conventional loop (read sensors, transmit using easylink, delay). But as the ideal way to do this is to achieve a very low power consumption after each data transmission, I tried shutting down the peripherials (Wire.end()) before calling the delay(), but it simply crashes.
I know that the delay functions in EnergiaMT are a idle task that puts the processor in a low power mode, depending on the contrstraints set by the active peripherials.
I have attached 2 examples, only 1 line different (wire.end() before the delay()), and very different results.
sensor_read_not_working.txt -> reading and transmitting sensor values in CC1350 sensortag and not working if wire.end() is called to save power. (sensor values don't change).
sensor_read_tx_working.txt -> reading and transmitting sensor values in CC1350 sensortag but without ending the wire function, the sensor values change.
I don't want to think the only reliable way to do simple sensor readings, sub-ghz TX and enter low power mode is using Sensor Controller Studio.