Getting ignition history

(edited by gly2008 27/11/2019 08:14:55)

Topic: Getting ignition history

Hello, please how to get ignition history from a certain time interval?
I perform code like this:

unit.getIgnitionHistory(1, from, to, 0, null, function(error, result) {
    console.log(error, result);
but get empty objects. What can be wrong?
ivalFrom and ivalTo are the time intervals is seconds, right? Perhaps there are examples how the use the getIgnitionHistory() or getSensorsHistory().