From the data logger program, is there a way to see if a successful data collection has been done? The application is that we want to reduce up-time on the modem, use callback to loggerNet and power off the modem when a successful data collection has been done.
There is not a flag to indicate if data collection has finished.
There is a flag you can watch to see if a communication port is busy. The instruction is ComPortIsActive(). You could start your callback, and periodically check for when the comport is no longer busy.
Ok, is there a way for LoggerNET to send a message to the logger to indicate successful data collection? Using the WebAPI maybe?
I suppose you could do something like that, though it would not be particularly easy.
In Task Master of Loggernet, you can set a task to trigger on the event of scheduled data collection. You could have that run a Cora Script command to set a boolean variable in the datalogger to True (-1).
The help file for Cora Script is located at:
C:\Program Files (x86)\Campbellsci\LoggerNet\cora_cmd.pdf
The set-variable command is the one to use. Be sure your script contains the "connect" command first (see section 1.2.1 in the help document).